diff --git a/uncompyle6/parsers/parse35.py b/uncompyle6/parsers/parse35.py index 0cdc6264..4ca8d2c7 100644 --- a/uncompyle6/parsers/parse35.py +++ b/uncompyle6/parsers/parse35.py @@ -1,4 +1,4 @@ -# Copyright (c) 2016-2017, 2019 Rocky Bernstein +# Copyright (c) 2016-2017, 2019, 2021 Rocky Bernstein """ spark grammar differences over Python 3.4 for Python 3.5. """ @@ -168,7 +168,7 @@ class Python35Parser(Python34Parser): call_token = tokens[i+1] rule = 'call ::= expr unmapexpr ' + call_token.kind self.addRule(rule, nop_func) - elif opname == 'BEFORE_ASYNC_WITH' and self.version < 3.8: + elif opname == 'BEFORE_ASYNC_WITH' and self.version < (3, 8): # Some Python 3.5+ async additions rules_str = """ stmt ::= async_with_stmt diff --git a/uncompyle6/scanners/scanner36.py b/uncompyle6/scanners/scanner36.py index 10b29b59..ab6c1be6 100644 --- a/uncompyle6/scanners/scanner36.py +++ b/uncompyle6/scanners/scanner36.py @@ -20,6 +20,7 @@ JUMP_OPS = opc.JUMP_OPS class Scanner36(Scanner3): def __init__(self, show_asm=None, is_pypy=False): + Scanner3.__init__(self, (3, 6), show_asm, is_pypy) return def ingest(self, co, classname=None, code_objects={}, show_asm=None):