Commit e500b59b authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Buffers: Unicode dict key problem

parent 8418439d
......@@ -144,7 +144,8 @@ def analyse_buffer_options(globalpos, env, posargs, dictargs, defaults=None, nee
raise CompileError(posargs[-1][1], ERR_BUF_TOO_MANY)
options = {}
for name, (value, pos) in dictargs.iteritems():
for unicode_name, (value, pos) in dictargs.iteritems():
name = str(unicode_name)
if not name in buffer_options:
raise CompileError(pos, ERR_BUF_OPTION_UNKNOWN % name)
options[name] = value
......
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