Commits

Philip Jenvey  committed 31ac6a2

workaround lack of space.hex/oct in py3k

  • Participants
  • Parent commits 231446d
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/micronumpy/interp_boxes.py

         return space.wrap(box.value)
 
     def descr_oct(self, space):
-        return space.oct(self.descr_int(space))
+        return space.call_method(space.builtin, 'oct', self.descr_int(space))
 
     def descr_hex(self, space):
-        return space.hex(self.descr_int(space))
+        return space.call_method(space.builtin, 'hex', self.descr_int(space))
 
     def descr_nonzero(self, space):
         dtype = self.get_dtype(space)