liftoff / pyminifier

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

IndentationError when previous line ends with ) and next line starts with ( #36

Open sdekrijger opened 9 years ago

sdekrijger commented 9 years ago

given test code:

def test():
  print("hello")
  (a, b) = (1, 2)

  # do something 
  if a == 1:
    print("OK")

output is:

def test():
 print("hello")
(a,b)=(1,2)
 if a==1:
  print("OK")