def trim(line):
 if (not ('#' in line)):
  return line
 return line.split('#')[0]

def trim ( line ) : if ( not ( '#' in line ) ) : return line return line . split ( '#' ) [ 0 ]
handle docstring indentation .