def _rstrip(line, JUNK='\n  DCTB '):
 i = len(line)
 while ((i > 0) and (line[(i - 1)] in JUNK)):
  i -= 1
 return line[:i]

def _rstrip ( line , JUNK = '\n  DCTB ' ) : i = len ( line ) while ( ( i > 0 ) and ( line [ ( i - 1 ) ] in JUNK ) ) : i -= 1 return line [ : i ]
return line stripped of trailing spaces .