[pypy-commit] pypy py3k: fix windows' translation
pjenvey
noreply at buildbot.pypy.org
Fri May 30 21:13:37 CEST 2014
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r71787:c8596183deb9
Date: 2014-05-30 12:12 -0700
http://bitbucket.org/pypy/pypy/changeset/c8596183deb9/
Log: fix windows' translation
diff --git a/pypy/module/_winreg/interp_winreg.py b/pypy/module/_winreg/interp_winreg.py
--- a/pypy/module/_winreg/interp_winreg.py
+++ b/pypy/module/_winreg/interp_winreg.py
@@ -328,7 +328,7 @@
buf[0] = '\0'
else:
try:
- value = w_value.readbuf_w(space)
+ value = w_value.buffer_w(space, space.BUF_SIMPLE)
except TypeError:
raise oefmt(space.w_TypeError,
"Objects of type '%T' can not be used as binary "
More information about the pypy-commit
mailing list