diff --git a/.circleci/config.yml b/.circleci/config.yml index db5b6d64..46e78de2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -14,7 +14,7 @@ jobs: # https://circleci.com/docs/2.0/circleci-images/ machine: python: - version: 3.6.10 + version: 3.6.9 steps: # Machine Setup # If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index cef5f608..9f24503b 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -2297,9 +2297,10 @@ class SourceWalker(GenericASTTraversal, object): pass have_qualname = False - if ast[0] == "sstmt": - ast[0] = ast[0][0] - first_stmt = ast[0] + if len(ast[0]): + if ast[0] == "sstmt": + ast[0] = ast[0][0] + first_stmt = ast[0] if self.version < 3.0: # Should we ditch this in favor of the "else" case?