pyobfuscate
pyobfuscate copied to clipboard
pyobfuscate generates incorrect source code
From http://bugzilla.lysator.liu.se/show_bug.cgi?id=1606:
Here is the source code "setup.py":
from distutils.core import setup import py2exe
setup( # The first three parameters are not required, if at least a # 'version' is given, then a versioninfo resource is built from # them and added to the executables. version = "0.1.01", description = "py2exe sample script", name = "py2exe samples",
# targets to build
windows = ['IntServerApp.py']
#windows = ["test_wx.py"],
#console = ["hello.py"],
)
When I run this through pyobfuscate it produces:
if 64 - 64: i11iIiiIii if 65 - 65: O0 / iIii1I11I1II1 % OoooooooOO - i1IIi from distutils . core import setup import py2exe if 73 - 73: II111iiii setup (
As you can expect, this won't compile.
Thanks.