diff --git a/test/simple_source/comprehension/05_list_comprehension.py b/test/simple_source/comprehension/05_list_comprehension.py index 0942e69b..8f7884ba 100644 --- a/test/simple_source/comprehension/05_list_comprehension.py +++ b/test/simple_source/comprehension/05_list_comprehension.py @@ -9,7 +9,12 @@ # list_iter ::= lc_body # lc_body ::= expr LIST_APPEND -[b for b in (0,1,2,3)] if __name__ == '__main__' else 5 +# Use line breaks so we can see what's going on in assembly +[b + for b in + (0,1,2,3) +] if (__name__ == '__main__' + ) else 5 # Python2: # list_compr ::= BUILD_LIST_0 list_iter diff --git a/uncompyle6/parsers/parse26.py b/uncompyle6/parsers/parse26.py index 7d77f2a1..341e207d 100644 --- a/uncompyle6/parsers/parse26.py +++ b/uncompyle6/parsers/parse26.py @@ -165,7 +165,7 @@ class Python26Parser(Python2Parser): def p_misc(self, args): ''' - conditional ::= expr jmp_false expr jf_cf_pop expr + conditional ::= expr jmp_false expr jf_cf_pop expr come_from_opt ''' class Python26ParserSingle(Python2Parser, PythonParserSingle):