Author: Miro Hron&#269;ok <m...@hroncok.cz>
Branch: release-pypy3.5-v5.9.x
Changeset: r93592:ac1ac8fceed5
Date: 2017-12-27 22:50 +0000
http://bitbucket.org/pypy/pypy/changeset/ac1ac8fceed5/

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

        Fixes https://bitbucket.org/pypy/pypy/issues/2718 (grafted from
        0551d04959425ea4a8ff7e87a5d357d03936cde0)

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