[pypy-commit] pypy unicode-dtype: fix translation

rlamy noreply at buildbot.pypy.org
Thu Jun 11 03:46:56 CEST 2015


Author: Ronan Lamy <ronan.lamy at gmail.com>
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):


More information about the pypy-commit mailing list