liftoff / pyminifier

Pyminifier is a Python code minifier, obfuscator, and compressor.
GNU General Public License v3.0
1.43k stars 221 forks source link

pyminifier minify incorrect #115

Open tacittech opened 5 years ago

tacittech commented 5 years ago

the following python test code runs correctly:

try: 0 / 0 except Exception: import sys errorX = sys.exc_info()[0] print "\nError:%s " % (errorX)

when minified it looks like this:

try: m=Exception 0/0 except m: import sys X=sys.exc_info()[0] print "\nError:%s "%(X)

Created by pyminifier (https://github.com/liftoff/pyminifier)

trying to run it (minified):

[vagrant@localhost minified]$ python X1.py File "X1.py", line 2 m=Exception ^ IndentationError: expected an indented block [vagrant@localhost minified]$ X1.py -bash: X1.py: command not found [vagrant@localhost minified]$