Commit 620699c7 authored by Nicolas Barbey's avatar Nicolas Barbey

Fix unicode handling

parent 0aaf087b
...@@ -178,7 +178,7 @@ class FastMachine(object): ...@@ -178,7 +178,7 @@ class FastMachine(object):
state['else'] = new_state state['else'] = new_state
elif code1 != maxint: elif code1 != maxint:
while code0 < code1: while code0 < code1:
state[chr(code0)] = new_state state[unichr(code0)] = new_state
code0 = code0 + 1 code0 = code0 + 1
else: else:
state[event] = new_state state[event] = new_state
......
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