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):
else:
fmt = __Pyx_TypeInfoToFormat(type)
if type.arraysize[0]:
extents = [str(type.arraysize[i]) for i in range(type.ndim)]
result = ("(%s)" % ','.join(extents)).encode('ascii') + fmt.string
extents = [unicode(type.arraysize[i]) for i in range(type.ndim)]
result = (u"(%s)" % u','.join(extents)).encode('ascii') + fmt.string
else:
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