-
Notifications
You must be signed in to change notification settings - Fork 229
minifier gives invalid output #145
Copy link
Copy link
Open
Description
from time import time
class Class():
def __init__(self, parent = None):
self.asdf = time()
if __name__ == '__main__':
c = Class()
gets converted to
from z import time
o=None
class J():
def __init__(n,parent=o):
n.asdf=z()
if __name__=='__main__':
c=J()
which is clearly wrong since z is never defined, in this case it should minify to from time import time as z then the code would run as expected
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels