1. Pypy
  2. Untitled project
  3. pypy

Commits

Philip Jenvey  committed 57889a2

adapt to py3

  • Participants
  • Parent commits 3f0fb50
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_boxes.py

View file
         return read_val
 
     def descr_setitem(self, space, w_item, w_value):
-        if space.isinstance_w(w_item, space.w_basestring):
+        if (space.isinstance_w(w_item, space.w_bytes) or
+            space.isinstance_w(w_item, space.w_unicode)):
             item = space.str_w(w_item)
         else:
             raise OperationError(space.w_IndexError, space.wrap(