Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r58431:746d3737d53f
Date: 2012-10-26 11:20 +0200
http://bitbucket.org/pypy/pypy/changeset/746d3737d53f/

Log:    update to pyrepl c385792628a7 (py3k-readline branch); now even
        fancycompleter and colored tab-completion works :)

diff --git a/lib_pypy/pyrepl/completing_reader.py 
b/lib_pypy/pyrepl/completing_reader.py
--- a/lib_pypy/pyrepl/completing_reader.py
+++ b/lib_pypy/pyrepl/completing_reader.py
@@ -67,8 +67,8 @@
         item = "%s  "
         padding = 2
     maxlen = min(max(map(real_len, wordlist)), cons.width - padding)
-    cols = cons.width / (maxlen + padding)
-    rows = (len(wordlist) - 1)/cols + 1
+    cols = cons.width // (maxlen + padding)
+    rows = (len(wordlist) - 1)//cols + 1
 
     if sort_in_column:
         # sort_in_column=False (default)     sort_in_column=True
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to