[pypy-svn] r12564 - pypy/dist/pypy/interpreter
tismer at codespeak.net
tismer at codespeak.net
Thu May 19 20:01:36 CEST 2005
Author: tismer
Date: Thu May 19 20:01:36 2005
New Revision: 12564
Modified:
pypy/dist/pypy/interpreter/gateway.py
Log:
small cleanup
Modified: pypy/dist/pypy/interpreter/gateway.py
==============================================================================
--- pypy/dist/pypy/interpreter/gateway.py (original)
+++ pypy/dist/pypy/interpreter/gateway.py Thu May 19 20:01:36 2005
@@ -513,10 +513,8 @@
self.source = source
self.modname = modname
# look at the first three lines for a NOT_RPYTHON tag
- first = source.split("\n", 3)[:3]
- for line in first:
- if "NOT_RPYTHON" in line:
- self.use_geninterp = False
+ first = "\n".join(source.split("\n", 3)[:3])
+ self.use_geninterp = "NOT_RPYTHON" not in first
def getwdict(self, space):
return space.fromcache(ApplevelCache).getorbuild(self)
More information about the Pypy-commit
mailing list