Author: Ronny Pfannschmidt <[email protected]>
Branch: py3ksupport
Changeset: r147:25ba09cae1bb
Date: 2011-10-19 10:53 +0200
http://bitbucket.org/pypy/pyrepl/changeset/25ba09cae1bb/
Log: use integer division for the wrapcount, testsuite passes now
diff --git a/pyrepl/reader.py b/pyrepl/reader.py
--- a/pyrepl/reader.py
+++ b/pyrepl/reader.py
@@ -290,7 +290,7 @@
p -= ll + 1
prompt, lp = self.process_prompt(prompt)
l, l2 = disp_str(line)
- wrapcount = (len(l) + lp) / w
+ wrapcount = (len(l) + lp) // w
if wrapcount == 0:
screen.append(prompt + l)
screeninfo.append((lp, l2+[1]))
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit