def _parse_date(dateString):
 if (not dateString):
  return None
 for handler in _date_handlers:
  try:
   date9tuple = handler(dateString)
  except (KeyError, OverflowError, ValueError):
   continue
  if (not date9tuple):
   continue
  if (len(date9tuple) != 9):
   continue
  return date9tuple
 return None

def _parse_date ( dateString ) : if ( not dateString ) : return None for handler in _date_handlers : try : date9tuple = handler ( dateString ) except ( KeyError , OverflowError , ValueError ) : continue if ( not date9tuple ) : continue if ( len ( date9tuple ) != 9 ) : continue return date9tuple return None
given a date in xport format .