MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / __repr__

Method __repr__

tests/test_code/py/pytz/tzinfo.py:504–516  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

502 return self._tzname
503
504 def __repr__(self):
505 if self._dst:
506 dst = 'DST'
507 else:
508 dst = 'STD'
509 if self._utcoffset > _notime:
510 return '<DstTzInfo %r %s+%s %s>' % (
511 self.zone, self._tzname, self._utcoffset, dst
512 )
513 else:
514 return '<DstTzInfo %r %s%s %s>' % (
515 self.zone, self._tzname, self._utcoffset, dst
516 )
517
518 def __reduce__(self):
519 # Special pickle to zone remains a singleton and to cope with

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected