Commit 43b10334 authored by Stefan Behnel's avatar Stefan Behnel

cleanup

parent 22ebe7d7
......@@ -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:
......
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