[pypy-commit] pypy default: Change _is 1_ to _== 1_ in lib_pypy.itertools tests

cbjadwani noreply at buildbot.pypy.org
Fri Oct 26 12:16:10 CEST 2012


Author: Chirag Jadwani <chirag.jadwani at gmail.com>
Branch: 
Changeset: r58439:3eb41b3bf182
Date: 2012-08-01 01:46 +0530
http://bitbucket.org/pypy/pypy/changeset/3eb41b3bf182/

Log:	Change _is 1_ to _== 1_ in lib_pypy.itertools tests

diff --git a/lib_pypy/itertools.py b/lib_pypy/itertools.py
--- a/lib_pypy/itertools.py
+++ b/lib_pypy/itertools.py
@@ -216,14 +216,14 @@
         return c
 
     def __reduce__(self):
-        if self._step is 1:
+        if self._step == 1:
             args = (self._counter,)
         else:
             args = (self._counter, self._step)
         return (self.__class__, args)
 
     def __repr__(self):
-        if self._step is 1:
+        if self._step == 1:
             return 'count(%r)' % (self._counter)
         return 'count(%r, %r)' % (self._counter, self._step)
 


More information about the pypy-commit mailing list