pyminifier icon indicating copy to clipboard operation
pyminifier copied to clipboard

Name error on obfuscation

Open i5ar opened this issue 8 years ago • 1 comments

I have this error when using apply_obfuscation(): File "C:\Users\...\Python35-32\lib\site-packages\pyminifier\obfuscate.py", line 92, in apply_obfuscation tokens, obfuscate_variable, variable, name_generator) NameError: name 'name_generator' is not defined.

The script I'm using to minify the source:

with open('main.py', 'r') as f:
    source= f.read()
    print (source)
    source = pyminifier.minification.remove_comments_and_docstrings(source)
    print (source)
    source = pyminifier.minification.remove_blank_lines(source)
    print (source)
    source = pyminifier.obfuscate.apply_obfuscation(source) # Here the error!
    ...

Thank you!

i5ar avatar Jul 31 '16 19:07 i5ar

I also have this issue

eternadox avatar Oct 28 '22 17:10 eternadox