sandrotosi  committed a38dd36

correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@

  • Participants
  • Parent commits 1689b9c
  • Branches 2.7

Comments (0)

Files changed (1)

File Doc/library/datetime.rst

    Most implementations of :meth:`dst` will probably look like one of these two::
-      def dst(self):
+      def dst(self, dt):
           # a fixed-offset class:  doesn't account for DST
           return timedelta(0)
    or ::
-      def dst(self):
+      def dst(self, dt):
           # Code to set dston and dstoff to the time zone's DST
           # transition times based on the input dt.year, and expressed
           # in standard local time.  Then