[pypy-svn] r10026 - pypy/dist/pypy/module/builtin
tismer at codespeak.net
tismer at codespeak.net
Mon Mar 21 22:32:27 CET 2005
Author: tismer
Date: Mon Mar 21 22:32:26 2005
New Revision: 10026
Modified:
pypy/dist/pypy/module/builtin/app_io.py
Log:
made source ending with white space crapcompile, as Python does it.
Modified: pypy/dist/pypy/module/builtin/app_io.py
==============================================================================
--- pypy/dist/pypy/module/builtin/app_io.py (original)
+++ pypy/dist/pypy/module/builtin/app_io.py Mon Mar 21 22:32:26 2005
@@ -18,7 +18,7 @@
finally:
f.close()
#Don't exec the source directly, as this loses the filename info
- co = compile(source, filename, 'exec')
+ co = compile(source.rstrip()+"\n", filename, 'exec')
exec co in glob, loc
def raw_input(prompt=None):
More information about the Pypy-commit
mailing list