Blame 013-fix-typeerror.patch

e858e84
# HG changeset patch
e858e84
# User Miro HronĨok <miro@hroncok.cz>
e858e84
# Date 1514415016 0
e858e84
# Branch hroncok/fix-typeerror-str-does-not-support-the-b-1514414905375
e858e84
# Node ID 0551d04959425ea4a8ff7e87a5d357d03936cde0
e858e84
# Parent  a4194a67868fa916074416e96456d07d52b1a1a1
e858e84
Fix: TypeError: 'str' does not support the buffer interface
e858e84
e858e84
Fixes https://bitbucket.org/pypy/pypy/issues/2718
e858e84
e858e84
diff --git a/lib_pypy/pyrepl/unix_console.py b/lib_pypy/pyrepl/unix_console.py
e858e84
--- a/lib_pypy/pyrepl/unix_console.py
e858e84
+++ b/lib_pypy/pyrepl/unix_console.py
e858e84
@@ -500,7 +500,7 @@
e858e84
             os.write(self.output_fd, fmt[:x])
e858e84
             fmt = fmt[y:]
e858e84
             delay = int(m.group(1))
e858e84
-            if '*' in m.group(2):
e858e84
+            if b'*' in m.group(2):
e858e84
                 delay *= self.height
e858e84
             if self._pad:
e858e84
                 nchars = (bps*delay)/1000