Commit c527279f authored by Stefan Behnel's avatar Stefan Behnel

C code simplification in memory view type format code

parent 12cf67fd
...@@ -1443,8 +1443,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type): ...@@ -1443,8 +1443,8 @@ cdef bytes format_from_typeinfo(__Pyx_TypeInfo *type):
else: else:
fmt = __Pyx_TypeInfoToFormat(type) fmt = __Pyx_TypeInfoToFormat(type)
if type.arraysize[0]: if type.arraysize[0]:
extents = [str(type.arraysize[i]) for i in range(type.ndim)] extents = [unicode(type.arraysize[i]) for i in range(type.ndim)]
result = ("(%s)" % ','.join(extents)).encode('ascii') + fmt.string result = (u"(%s)" % u','.join(extents)).encode('ascii') + fmt.string
else: else:
result = fmt.string result = fmt.string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment