23 lines
831 B
Diff
23 lines
831 B
Diff
# HG changeset patch
|
|
# User Miro Hrončok <miro@hroncok.cz>
|
|
# Date 1514415016 0
|
|
# Branch hroncok/fix-typeerror-str-does-not-support-the-b-1514414905375
|
|
# Node ID 0551d04959425ea4a8ff7e87a5d357d03936cde0
|
|
# Parent a4194a67868fa916074416e96456d07d52b1a1a1
|
|
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
|