[pypy-commit] pypy hroncok/fix-typeerror-str-does-not-support-the-b-1514414905375: Fix: TypeError: 'str' does not support the buffer interface

hroncok pypy.commits at gmail.com
Thu Dec 28 00:22:12 EST 2017


Author: Miro Hrončok <miro at 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


More information about the pypy-commit mailing list