Author: Amaury Forgeot d'Arc <[email protected]>
Branch: 
Changeset: r56306:87df70952d8e
Date: 2012-07-21 12:02 +0200
http://bitbucket.org/pypy/pypy/changeset/87df70952d8e/

Log:    Issue1221: When calling reader.readline(), don't pass reader in the
        arguments! It was wrongly interpreted as "returns_unicode=True"

diff --git a/lib_pypy/pyrepl/readline.py b/lib_pypy/pyrepl/readline.py
--- a/lib_pypy/pyrepl/readline.py
+++ b/lib_pypy/pyrepl/readline.py
@@ -194,7 +194,7 @@
         except _error:
             return _old_raw_input(prompt)
         reader.ps1 = prompt
-        return reader.readline(reader, startup_hook=self.startup_hook)
+        return reader.readline(startup_hook=self.startup_hook)
 
     def multiline_input(self, more_lines, ps1, ps2, returns_unicode=False):
         """Read an input on possibly multiple lines, asking for more
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to