Commit a4e6c41f authored by Stefan Behnel's avatar Stefan Behnel

fix compiler crash in unicode encoding optimiser

parent 728daa9a
......@@ -2773,7 +2773,7 @@ class OptimizeBuiltinCalls(Visitor.MethodDispatcherTransform):
elif node.type.is_string:
encoding = None
else:
node = None
encoding = node = None
return encoding, node
def _handle_simple_method_str_endswith(self, node, args, is_unbound_method):
......
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