projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12cf67f
)
C code simplification in memory view type format code
author
Stefan Behnel
<stefan_ml@behnel.de>
Tue, 31 Jul 2012 18:05:37 +0000
(20:05 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Tue, 31 Jul 2012 18:05:37 +0000
(20:05 +0200)
Cython/Utility/MemoryView.pyx
patch
|
blob
|
history
diff --git
a/Cython/Utility/MemoryView.pyx
b/Cython/Utility/MemoryView.pyx
index
dfa6ba0
..
250fcff
100644
(file)
--- a/
Cython/Utility/MemoryView.pyx
+++ b/
Cython/Utility/MemoryView.pyx
@@
-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