Commit 02358999 authored by Stefan Behnel's avatar Stefan Behnel

avoid unused fallback code also for typed list unpacking

parent 8c9ab4a0
...@@ -5997,8 +5997,8 @@ class SequenceNode(ExprNode): ...@@ -5997,8 +5997,8 @@ class SequenceNode(ExprNode):
if sequence_type_test == '1': if sequence_type_test == '1':
code.putln("}") # all done code.putln("}") # all done
elif rhs.type is tuple_type: elif sequence_type_test == none_check:
# either tuple or None => save some code by generating the error directly # either tuple/list or None => save some code by generating the error directly
code.putln("} else {") code.putln("} else {")
code.globalstate.use_utility_code( code.globalstate.use_utility_code(
UtilityCode.load_cached("RaiseNoneIterError", "ObjectHandling.c")) UtilityCode.load_cached("RaiseNoneIterError", "ObjectHandling.c"))
......
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