def iso2time(text):
 text = text.lstrip()
 (day, mon, yr, hr, min, sec, tz) = ([None] * 7)
 m = ISO_DATE_RE.search(text)
 if (m is not None):
  (yr, mon, day, hr, min, sec, tz, _) = m.groups()
 else:
  return None
 return _str2time(day, mon, yr, hr, min, sec, tz)

def iso2time ( text ) : text = text . lstrip ( ) ( day , mon , yr , hr , min , sec , tz ) = ( [ None ] * 7 ) m = ISO_DATE_RE . search ( text ) if ( m is not None ) : ( yr , mon , day , hr , min , sec , tz , _ ) = m . groups ( ) else : return None return _str2time ( day , mon , yr , hr , min , sec , tz )
as for http2time .