[py3k] reduce is now in the functools module

Requires python >= 2.6. Related to #296242.

authorRémi Cardona <remi.cardona@free.fr>
changesetc7494a3a871a
branchdefault
phasepublic
hiddenno
parent revision#40bd9b8b1e09 [py3k] Stop using dict.iter{keys,values,items}()
child revision#36ea0996d803 [py3k] object no longer has a default __lt__
files modified by this revision
propagation.py
# HG changeset patch
# User Rémi Cardona <remi.cardona@free.fr>
# Date 1405926677 -7200
# Mon Jul 21 09:11:17 2014 +0200
# Node ID c7494a3a871a0594e966aa2a61580a38abef0876
# Parent 40bd9b8b1e09c98152efba7f1ca2c4e398fba4be
[py3k] reduce is now in the functools module

Requires python >= 2.6.
Related to #296242.

diff --git a/propagation.py b/propagation.py
@@ -17,10 +17,11 @@
1  # with logilab-constraint. If not, see <http://www.gnu.org/licenses/>.
2  """The code of the constraint propagation algorithms"""
3  from __future__ import print_function
4  import sys
5  from operator import mul as MUL
6 +from functools import reduce
7  from time import strftime
8  from logilab.constraint.interfaces import DomainInterface, ConstraintInterface
9 
10  def quiet_printer(*args):
11      pass