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

This commit is contained in:
Sandro Tosi 2011-11-01 10:31:26 +01:00
parent 1aacd7bb02
commit 1f3b84f971
1 changed files with 2 additions and 2 deletions

View File

@ -1385,13 +1385,13 @@ methods. Exactly which methods are needed depends on the uses made of aware
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