Author: Alex Gaynor <[email protected]>
Branch: stdlib-2.7.11
Changeset: r83193:0ef70082ab3c
Date: 2016-03-20 11:05 -0400
http://bitbucket.org/pypy/pypy/changeset/0ef70082ab3c/
Log: whoops
diff --git a/pypy/module/_random/interp_random.py
b/pypy/module/_random/interp_random.py
--- a/pypy/module/_random/interp_random.py
+++ b/pypy/module/_random/interp_random.py
@@ -77,7 +77,7 @@
w_item = space.getitem(w_state, space.newint(rrandom.N))
index = space.int_w(w_item)
if index < 0 or index > rrandom.N:
- raise OperationError(space.w_ValueError, "invalid state")
+ raise OperationError(space.w_ValueError, space.wrap("invalid
state"))
self._rnd.index = index
def jumpahead(self, space, w_n):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit