def __repr__(self):
    """Convert to formal string, for repr().

    >>> tz = dt_timezone.utc
    >>> repr(tz)
    "datetime.dt_timezone.utc"
    >>> tz = dt_timezone(timedelta(hours=-5), 'EST')
    >>> repr(tz)
    "datetime.dt_timezone(datetime.timedelta(-1, 68400), 'EST')"
    """
    if self is self.utc:
      return "datetime.dt_timezone.utc"
    if self._name is None:
      return "%s(%r)" % ("datetime." + self.__class__.__name__,
                         self._offset)
    return "%s(%r, %r)" % ("datetime." + self.__class__.__name__,
                           self._offset, self._name)
def __repr__ ( self ) : if self is self . utc : return "datetime.dt_timezone.utc" if self . _name is None : return "%s(%r)" % ( "datetime." + self . __class__ . __name__ , self . _offset ) return "%s(%r, %r)" % ( "datetime." + self . __class__ . __name__ , self . _offset , self . _name )
Convert to formal string, for repr().

    >>> tz = dt_timezone.utc
    >>> repr(tz)
    "datetime.dt_timezone.utc"
    >>> tz = dt_timezone(timedelta(hours=-5), 'EST')
    >>> repr(tz)
    "datetime.dt_timezone(datetime.timedelta(-1, 68400), 'EST')"