[pypy-commit] pypy default: Issue1221: When calling reader.readline(), don't pass reader in the arguments!
amauryfa
noreply at buildbot.pypy.org
Sat Jul 21 12:52:14 CEST 2012
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
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
More information about the pypy-commit
mailing list