def normalize_multiline(line):
 if (line.startswith(u'def ') and line.rstrip().endswith(u':')):
  return (line + u' pass')
 elif line.startswith(u'return '):
  return (u'def _(): ' + line)
 elif line.startswith(u'@'):
  return (line + u'def _(): pass')
 elif line.startswith(u'class '):
  return (line + u' pass')
 elif line.startswith((u'if ', u'elif ', u'for ', u'while ')):
  return (line + u' pass')
 else:
  return line

def normalize_multiline ( line ) : if ( line . startswith ( u'def ' ) and line . rstrip ( ) . endswith ( u':' ) ) : return ( line + u' pass' ) elif line . startswith ( u'return ' ) : return ( u'def _(): ' + line ) elif line . startswith ( u'@' ) : return ( line + u'def _(): pass' ) elif line . startswith ( u'class ' ) : return ( line + u' pass' ) elif line . startswith ( ( u'if ' , u'elif ' , u'for ' , u'while ' ) ) : return ( line + u' pass' ) else : return line
normalize multiline-related code that will cause syntax error .