Author: Brian Kearns <[email protected]>
Branch: refactor-buffer-api
Changeset: r70900:086aa4773f70
Date: 2014-04-23 19:05 -0400
http://bitbucket.org/pypy/pypy/changeset/086aa4773f70/

Log:    fix

diff --git a/pypy/module/_sre/interp_sre.py b/pypy/module/_sre/interp_sre.py
--- a/pypy/module/_sre/interp_sre.py
+++ b/pypy/module/_sre/interp_sre.py
@@ -114,7 +114,7 @@
             return rsre_core.UnicodeMatchContext(self.code, unicodestr,
                                                  pos, endpos, self.flags)
         else:
-            buf = space.buffer_w(w_string)
+            buf = space.readbuf_w(w_string)
             size = buf.getlength()
             assert size >= 0
             if pos > size:
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to