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

Method __reduce__

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

Source from the content-addressed store, hash-verified

516 )
517
518 def __reduce__(self):
519 # Special pickle to zone remains a singleton and to cope with
520 # database changes.
521 return pytz._p, (
522 self.zone,
523 _to_seconds(self._utcoffset),
524 _to_seconds(self._dst),
525 self._tzname
526 )
527
528
529def unpickler(zone, utcoffset=None, dstoffset=None, tzname=None):

Callers

nothing calls this directly

Calls 1

_to_secondsFunction · 0.85

Tested by

no test coverage detected