[pypy-svn] r66385 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 21:13:56 CEST 2009


Author: benjamin
Date: Sat Jul 18 21:13:54 2009
New Revision: 66385

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
slices have to be > 0

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Sat Jul 18 21:13:54 2009
@@ -555,7 +555,7 @@
                 self._import_as(alias)
             else:
                 dot = alias.name.find(".")
-                if dot == -1:
+                if dot < 0:
                     store_name = alias.name
                 else:
                     store_name = alias.name[:dot]



More information about the Pypy-commit mailing list