]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@
authorSandro Tosi <sandro.tosi@gmail.com>
Tue, 1 Nov 2011 09:31:26 +0000 (10:31 +0100)
committerSandro Tosi <sandro.tosi@gmail.com>
Tue, 1 Nov 2011 09:31:26 +0000 (10:31 +0100)
Doc/library/datetime.rst

index 8a2920db0b0b01d1041ab3045650564b296fa7cc..55acf6758a590a430e42b8bed5ec805a1960fab2 100644 (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