Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63485:a1924f27cfd4
Date: 2013-04-18 13:33 -0700
http://bitbucket.org/pypy/pypy/changeset/a1924f27cfd4/
Log: fix window's urandom to return bytes
diff --git a/pypy/module/posix/interp_posix.py
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -1172,6 +1172,6 @@
"""
context = get(space).random_context
try:
- return space.wrap(rurandom.urandom(context, n))
+ return space.wrapbytes(rurandom.urandom(context, n))
except OSError, e:
raise wrap_oserror(space, e)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit