From: Stefan Behnel Date: Sun, 17 Aug 2008 06:59:03 +0000 (+0200) Subject: cleanup X-Git-Tag: 0.9.8.1~6 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=43b1033435355ecbaf05682551866cb557c50579;p=cython.git cleanup --- diff --git a/Cython/Compiler/Buffer.py b/Cython/Compiler/Buffer.py index 0a92964f..637a11c8 100644 --- 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: