try:
if not s.endswith("Z"):
raise ValueError
- # the "local" in this "localseconds" is superfluous and
- # misleading. This returns seconds-since-epoch for an
- # ISO-8601-ish-formatted UTC time string. This might raise
- # ValueError if the string is not in the right format.
+ # This returns seconds-since-epoch for an ISO-8601-ish-formatted UTC
+ # time string. This might raise ValueError if the string is not in the
+ # right format.
when = time_format.iso_utc_time_to_seconds(s[:-1])
return when
except ValueError: