[pypy-commit] pypy py3k: hg merge default

antocuni noreply at buildbot.pypy.org
Fri Mar 16 15:48:37 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53724:40ba72f5ae18
Date: 2012-03-16 15:47 +0100
http://bitbucket.org/pypy/pypy/changeset/40ba72f5ae18/

Log:	hg merge default

diff --git a/pypy/interpreter/gateway.py b/pypy/interpreter/gateway.py
--- a/pypy/interpreter/gateway.py
+++ b/pypy/interpreter/gateway.py
@@ -913,6 +913,7 @@
         if filename is None:
             f = sys._getframe(1)
             filename = '<%s:%d>' % (f.f_code.co_filename, f.f_lineno)
+        if not os.path.exists(filename):
             # make source code available for tracebacks
             lines = [x + "\n" for x in source.split("\n")]
             py.std.linecache.cache[filename] = (1, None, lines, filename)


More information about the pypy-commit mailing list