From 009a74da7deb1f89ef497f627a952d7e55f47a5f Mon Sep 17 00:00:00 2001 From: x0ret Date: Mon, 13 May 2019 19:41:42 +0430 Subject: [PATCH] fix UnboundLocalError --- uncompyle6/semantics/pysource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uncompyle6/semantics/pysource.py b/uncompyle6/semantics/pysource.py index a63b3556..f11f1fda 100644 --- a/uncompyle6/semantics/pysource.py +++ b/uncompyle6/semantics/pysource.py @@ -1439,7 +1439,7 @@ class SourceWalker(GenericASTTraversal, object): i = n - (len(kwargs)+1) j = 1 + n - node[n].attr else: - start = n-2 + i = start = n-2 for i in range(start, 0, -1): if not node[i].kind in ['expr', 'call', 'LOAD_CLASSNAME']: break