Author: Ronan Lamy <[email protected]>
Branch: unicode-dtype
Changeset: r78024:e0542894acbb
Date: 2015-06-11 02:46 +0100
http://bitbucket.org/pypy/pypy/changeset/e0542894acbb/

Log:    fix translation

diff --git a/pypy/module/micronumpy/types.py b/pypy/module/micronumpy/types.py
--- a/pypy/module/micronumpy/types.py
+++ b/pypy/module/micronumpy/types.py
@@ -2298,6 +2298,7 @@
         return (not b and a) or (not a and b)
 
     def bool(self, v):
+        assert isinstance(v, boxes.W_UnicodeBox)
         return bool(v._value)
 
     def fill(self, storage, width, native, box, start, stop, offset, gcstruct):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to