Skip to content

Commit d2a1716

Browse files
committed
Remove messed-up show_tree call
1 parent 76039a2 commit d2a1716

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

uncompyle6/semantics/make_function36.py

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,21 @@
1717
The saga of changes before 3.6 is in other files.
1818
"""
1919
from xdis import (
20-
iscode,
20+
CO_ASYNC_GENERATOR,
21+
CO_GENERATOR,
2122
code_has_star_arg,
2223
code_has_star_star_arg,
23-
CO_GENERATOR,
24-
CO_ASYNC_GENERATOR,
24+
iscode,
2525
)
26-
from uncompyle6.scanner import Code
27-
from uncompyle6.semantics.parser_error import ParserError
26+
2827
from uncompyle6.parser import ParserError as ParserError2
28+
from uncompyle6.scanner import Code
2929
from uncompyle6.semantics.helper import (
3030
find_all_globals,
3131
find_globals_and_nonlocals,
3232
find_none,
3333
)
34-
35-
from uncompyle6.show import maybe_show_tree_param_default
34+
from uncompyle6.semantics.parser_error import ParserError
3635

3736

3837
def make_function36(self, node, is_lambda, nested=1, code_node=None):
@@ -55,7 +54,6 @@ def build_param(ast, name, default, annotation=None):
5554
- handle format tuple parameters
5655
"""
5756
value = default
58-
maybe_show_tree_param_default(self.showast, name, value)
5957
if annotation:
6058
result = "%s: %s=%s" % (name, annotation, value)
6159
else:
@@ -150,7 +148,7 @@ def build_param(ast, name, default, annotation=None):
150148
kwonlyargcount = code.co_kwonlyargcount
151149

152150
paramnames = list(scanner_code.co_varnames[:argc])
153-
kwargs = list(scanner_code.co_varnames[argc: argc + kwonlyargcount])
151+
kwargs = list(scanner_code.co_varnames[argc : argc + kwonlyargcount])
154152

155153
paramnames.reverse()
156154
defparams.reverse()
@@ -181,7 +179,7 @@ def build_param(ast, name, default, annotation=None):
181179
)
182180
)
183181

184-
for param in paramnames[i + 1:]:
182+
for param in paramnames[i + 1 :]:
185183
if param in annotate_dict:
186184
params.append("%s: %s" % (param, annotate_dict[param]))
187185
else:

0 commit comments

Comments
 (0)