Author: Antonio Cuni <anto.c...@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) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit