# HG changeset patch # User Julien Cristau # Date 1445451636 -7200 # Node ID 375a8232e61c2d9e6e78f63a58e676651b86afd0 # Parent 1a3e56e346d204ad1a4736087f3fa61815a7bec0 [dataimport] import range from six.moves diff -r 1a3e56e346d2 -r 375a8232e61c dataimport/massive_store.py --- a/dataimport/massive_store.py Wed Oct 21 20:19:51 2015 +0200 +++ b/dataimport/massive_store.py Wed Oct 21 20:20:36 2015 +0200 @@ -22,6 +22,8 @@ from collections import defaultdict from io import StringIO +from six.moves import range + from yams.constraints import SizeConstraint from psycopg2 import ProgrammingError @@ -413,7 +415,7 @@ storing them""" while True: last_eid = self._cnx.repo.system_source.create_eid(self._cnx, self._eids_seq_range) - for eid in xrange(last_eid - self._eids_seq_range + 1, last_eid + 1): + for eid in range(last_eid - self._eids_seq_range + 1, last_eid + 1): yield eid def apply_size_constraints(self, etype, kwargs):