projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22ebe7d
)
cleanup
author
Stefan Behnel
<scoder@users.berlios.de>
Sun, 17 Aug 2008 06:59:03 +0000
(08:59 +0200)
committer
Stefan Behnel
<scoder@users.berlios.de>
Sun, 17 Aug 2008 06:59:03 +0000
(08:59 +0200)
Cython/Compiler/Buffer.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Buffer.py
b/Cython/Compiler/Buffer.py
index 0a92964fbb9c326c3b3e14299f00a09b8eaa1331..637a11c843c64409b392af44fed43e293849cc9d 100644
(file)
--- a/
Cython/Compiler/Buffer.py
+++ b/
Cython/Compiler/Buffer.py
@@
-145,11
+145,10
@@
def analyse_buffer_options(globalpos, env, posargs, dictargs, defaults=None, nee
raise CompileError(posargs[-1][1], ERR_BUF_TOO_MANY)
options = {}
- for unicode_name, (value, pos) in dictargs.iteritems():
- name = str(unicode_name)
+ for name, (value, pos) in dictargs.iteritems():
if not name in buffer_options:
raise CompileError(pos, ERR_BUF_OPTION_UNKNOWN % name)
- options[name] = value
+ options[name
.encode("ASCII")
] = value
for name, (value, pos) in zip(buffer_options, posargs):
if not name in buffer_options: