[towards py3k] import reduce() from functools (part of #2711624)
authorNicolas Chauvat <nicolas.chauvat@logilab.fr>
Fri, 22 Feb 2013 19:36:40 +0100
changeset 8719 539ed3fb27cb
parent 8718 9e7847dcbd94
child 8725 29e19ca141fc
[towards py3k] import reduce() from functools (part of #2711624)
cwvreg.py
web/facet.py
web/formwidgets.py
web/views/massmailing.py
--- a/cwvreg.py	Mon Mar 11 18:37:01 2013 +0100
+++ b/cwvreg.py	Fri Feb 22 19:36:40 2013 +0100
@@ -197,7 +197,7 @@
 from os.path import join, dirname, realpath
 from warnings import warn
 from datetime import datetime, date, time, timedelta
-from functools import partial
+from functools import partial, reduce
 
 from logilab.common.decorators import cached, clear_cache
 from logilab.common.deprecation import deprecated, class_deprecated
--- a/web/facet.py	Mon Mar 11 18:37:01 2013 +0100
+++ b/web/facet.py	Fri Feb 22 19:36:40 2013 +0100
@@ -49,6 +49,7 @@
 __docformat__ = "restructuredtext en"
 _ = unicode
 
+from functools import reduce
 from warnings import warn
 from copy import deepcopy
 from datetime import datetime, timedelta
--- a/web/formwidgets.py	Mon Mar 11 18:37:01 2013 +0100
+++ b/web/formwidgets.py	Fri Feb 22 19:36:40 2013 +0100
@@ -94,6 +94,7 @@
 """
 __docformat__ = "restructuredtext en"
 
+from functools import reduce
 from datetime import date
 from warnings import warn
 
--- a/web/views/massmailing.py	Mon Mar 11 18:37:01 2013 +0100
+++ b/web/views/massmailing.py	Fri Feb 22 19:36:40 2013 +0100
@@ -21,6 +21,7 @@
 _ = unicode
 
 import operator
+from functools import reduce
 
 from cubicweb.predicates import (is_instance, authenticated_user,
                                 adaptable, match_form_params)