def _chop_end_misc(line):
 return re.sub('\\s\\s\\s\\s+.*\\Z', '', line)

def _chop_end_misc ( line ) : return re . sub ( '\\s\\s\\s\\s+.*\\Z' , '' , line )
chops lines ending with 14-jul-97 1csa and the like .