From d39efbb2d88c0df227697a37119d90871a99f962 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 4 Mar 2014 21:15:52 +0000 Subject: [PATCH] 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 --- zenmap/zenmapCore/NmapOptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zenmap/zenmapCore/NmapOptions.py b/zenmap/zenmapCore/NmapOptions.py index 5e8a3a19b..566692bc8 100644 --- a/zenmap/zenmapCore/NmapOptions.py +++ b/zenmap/zenmapCore/NmapOptions.py @@ -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