[pypy-commit] pypy release-pypy3.5-v5.9.x: Fix: TypeError: 'str' does not support the buffer interface
hroncok
pypy.commits at gmail.com
Thu Dec 28 14:30:51 EST 2017
Author: Miro Hrončok <miro at 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
More information about the pypy-commit
mailing list