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:
dmiller 2014-03-04 21:15:52 +00:00
parent 9aa2d9a130
commit d39efbb2d8

View file

@ -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