Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r53952:32925569e989
Date: 2012-03-23 18:07 +0100
http://bitbucket.org/pypy/pypy/changeset/32925569e989/

Log:    dtypes are now passed around as unicode

diff --git a/pypy/module/micronumpy/interp_dtype.py 
b/pypy/module/micronumpy/interp_dtype.py
--- a/pypy/module/micronumpy/interp_dtype.py
+++ b/pypy/module/micronumpy/interp_dtype.py
@@ -198,7 +198,7 @@
         return cache.w_float64dtype
     elif space.isinstance_w(w_dtype, w_subtype):
         return w_dtype
-    elif space.isinstance_w(w_dtype, space.w_str):
+    elif space.isinstance_w(w_dtype, space.w_unicode):
         name = space.str_w(w_dtype)
         if ',' in name:
             return dtype_from_spec(space, name)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to