Author: Mark Young <marky1...@gmail.com>
Branch: 33_fix_itertools
Changeset: r84039:c84d7d8227be
Date: 2016-04-24 21:06 -0400
http://bitbucket.org/pypy/pypy/changeset/c84d7d8227be/

Log:    Fix translation. (Thanks ronan)

diff --git a/pypy/module/itertools/interp_itertools.py 
b/pypy/module/itertools/interp_itertools.py
--- a/pypy/module/itertools/interp_itertools.py
+++ b/pypy/module/itertools/interp_itertools.py
@@ -424,14 +424,18 @@
         start = self.start
         stop = self.stop
         if start == -1:
-            start = None
+            w_start = space.w_None
+        else:
+            w_start = space.wrap(start)
         if stop == -1:
-            stop = None
+            w_stop = space.w_None
+        else:
+            w_stop = space.wrap(stop)
         return space.newtuple([
             space.type(self),
             space.newtuple([self.iterable,
-                            space.wrap(start),
-                            space.wrap(stop),
+                            w_start,
+                            w_stop,
                             space.wrap(self.ignore + 1)]),
         ])
 
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to