Author: Armin Rigo <armin.r...@gmail.com>
Branch: py3.5
Changeset: r93585:d7d2710e6535
Date: 2017-12-28 05:21 +0000
http://bitbucket.org/pypy/pypy/changeset/d7d2710e6535/

Log:    Merged in hroncok/pypy-2/hroncok/fix-typeerror-str-does-not-support-
        the-b-1514414905375 (pull request #587)

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

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