pyobfuscate icon indicating copy to clipboard operation
pyobfuscate copied to clipboard

Comments "inside" multi-line sequences fails with dummy-lines

Open astrand opened this issue 13 years ago • 0 comments

From http://bugzilla.lysator.liu.se/show_bug.cgi?id=1585:

If you have a construction like this:

foo = [1, # My number one 2, 3]

the obfuscated code will look like:

oo000 = [ 1 ,if 9 - 9: Ii . o0o00Oo0O - iI11I1II1I1I 2 , 3 ]

Thus, a dummy-line construction has been inserted at the position of the comment.

A workaround is to turn off dummy lines, ie either use --removeblanks or --keepblanks

astrand avatar Aug 24 '12 08:08 astrand