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.
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user