From 43b1033435355ecbaf05682551866cb557c50579 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 17 Aug 2008 08:59:03 +0200 Subject: [PATCH] cleanup --- Cython/Compiler/Buffer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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: -- 2.26.2