liftoff / pyminifier

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

Semantics of import aren't preserved during obfuscation #103

Open rix0rrr opened 6 years ago

rix0rrr commented 6 years ago

If I do

import botocore
import botocore.exceptions

This gets obfuscated to:

import botocore
x=botocore.exceptions

But that is not the same! The botocore.exceptions module definitely needs an import statement, otherwise it will not be found.