changeset 10669 | 155c29e0ed1c |
parent 10662 | 10942ed172de |
--- a/spa2rql.py Tue Sep 15 17:10:58 2015 +0200 +++ b/spa2rql.py Fri Sep 18 14:29:53 2015 +0200 @@ -148,7 +148,7 @@ """return corresponding rql query (string) / args (dict)""" for varname, ptypes in self.possible_types.items(): if len(ptypes) == 1: - self.restrictions.append('%s is %s' % (varname, iter(ptypes).next())) + self.restrictions.append('%s is %s' % (varname, next(iter(ptypes)))) unions = [] for releq, subjvar, obj in self.union_params: thisunions = []