We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dbd603 commit 74d0548Copy full SHA for 74d0548
1 file changed
src/python_minifier/__init__.py
@@ -92,8 +92,6 @@ def minify(
92
module = ast.parse(source, filename)
93
94
add_namespace(module)
95
- bind_names(module)
96
- resolve_names(module)
97
98
if remove_literal_statements:
99
module = RemoveLiteralStatements()(module)
@@ -110,6 +108,9 @@ def minify(
110
108
if remove_object_base:
111
109
module = RemoveObject()(module)
112
+ bind_names(module)
+ resolve_names(module)
113
+
114
if module.tainted:
115
rename_globals = False
116
rename_locals = False
0 commit comments