Author: Miro Hron&#269;ok <m...@hroncok.cz>
Branch: hroncok/fix-typeerror-str-does-not-support-the-b-1514414905375
Changeset: r93584:0551d0495942
Date: 2017-12-27 22:50 +0000
http://bitbucket.org/pypy/pypy/changeset/0551d0495942/

Log:    Fix: TypeError: 'str' does not support the buffer interface

        Fixes https://bitbucket.org/pypy/pypy/issues/2718

diff --git a/lib_pypy/pyrepl/unix_console.py b/lib_pypy/pyrepl/unix_console.py
--- a/lib_pypy/pyrepl/unix_console.py
+++ b/lib_pypy/pyrepl/unix_console.py
@@ -500,7 +500,7 @@
             os.write(self.output_fd, fmt[:x])
             fmt = fmt[y:]
             delay = int(m.group(1))
-            if '*' in m.group(2):
+            if b'*' in m.group(2):
                 delay *= self.height
             if self._pad:
                 nchars = (bps*delay)/1000
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to