Author: Carl Friedrich Bolz <[email protected]>
Branch: space-newtext
Changeset: r88791:2c4d7a3d4373
Date: 2016-12-01 13:46 +0100
http://bitbucket.org/pypy/pypy/changeset/2c4d7a3d4373/
Log: make sure that hacked_filename is a str
diff --git a/pypy/interpreter/interactive.py b/pypy/interpreter/interactive.py
--- a/pypy/interpreter/interactive.py
+++ b/pypy/interpreter/interactive.py
@@ -169,12 +169,12 @@
def runsource(self, source, ignored_filename="<input>", symbol="single"):
# the following hacked file name is recognized specially by error.py
- hacked_filename = '<inline>\n' + source
compiler = self.space.getexecutioncontext().compiler
# CPython 2.6 turns console input into unicode
if isinstance(source, unicode):
source = source.encode(sys.stdin.encoding)
+ hacked_filename = '<inline>\n' + source
def doit():
# compile the provided input
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit