mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fix a DeprecationWarning in zenmap with python -3
DeprecationWarning: reduce() not supported in 3.x; use functools.reduce() functools.reduce was added in Python 2.6
This commit is contained in:
parent
9aa2d9a130
commit
d39efbb2d8
1 changed files with 2 additions and 0 deletions
|
|
@ -81,6 +81,8 @@
|
|||
# get_option_check_auxiliary_widget in OptionBuilder.py.
|
||||
# 7) Make sure the test case works now.
|
||||
|
||||
from functools import reduce
|
||||
|
||||
|
||||
class option:
|
||||
"""A single option, part of a pool of potential options. It's just a name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue