[PATCH 1 of 2 saem_ref V2] [py3] use six.move.map instead of itertools.imap

Philippe Pepiot philippe.pepiot at logilab.fr
Fri Feb 24 15:37:36 CET 2017


# HG changeset patch
# User Philippe Pepiot <philippe.pepiot at logilab.fr>
# Date 1487946672 -3600
#      Fri Feb 24 15:31:12 2017 +0100
# Node ID 5b36edccfd6eab8e7cf78107a779335654ec4a91
# Parent  7e9aca4d08ef63873707041c5db2af823ebcceda
# Available At https://hg.logilab.org/review/cubes/saem_ref
#              hg pull https://hg.logilab.org/review/cubes/saem_ref -r 5b36edccfd6e
# Tested at: https://jenkins.logilab.org/job/cubicweb-saem_ref/101/
[py3] use six.move.map instead of itertools.imap

diff --git a/cubicweb_saem_ref/sobjects/__init__.py b/cubicweb_saem_ref/sobjects/__init__.py
--- a/cubicweb_saem_ref/sobjects/__init__.py
+++ b/cubicweb_saem_ref/sobjects/__init__.py
@@ -15,7 +15,7 @@
 # with this program. If not, see <http://www.gnu.org/licenses/>.
 """cubicweb-saem-ref server objects"""
 
-from itertools import imap
+from six.moves import map as imap
 
 from cubicweb.predicates import match_user_groups, match_kwargs
 from cubicweb.server import Service



More information about the saem-devel mailing list