mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11: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:
@@ -81,6 +81,8 @@
|
|||||||
# get_option_check_auxiliary_widget in OptionBuilder.py.
|
# get_option_check_auxiliary_widget in OptionBuilder.py.
|
||||||
# 7) Make sure the test case works now.
|
# 7) Make sure the test case works now.
|
||||||
|
|
||||||
|
from functools import reduce
|
||||||
|
|
||||||
|
|
||||||
class option:
|
class option:
|
||||||
"""A single option, part of a pool of potential options. It's just a name
|
"""A single option, part of a pool of potential options. It's just a name
|
||||||
|
|||||||
Reference in New Issue
Block a user