[Python-checkins] cpython (3.2): correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from

sandro.tosi python-checkins at python.org
Tue Nov 1 10:34:38 CET 2011


http://hg.python.org/cpython/rev/1d47d5fdb633
changeset:   73270:1d47d5fdb633
branch:      3.2
parent:      73267:c497011a4769
user:        Sandro Tosi <sandro.tosi at gmail.com>
date:        Tue Nov 01 10:32:05 2011 +0100
summary:
  correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from docs@

files:
  Doc/library/datetime.rst |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1422,13 +1422,13 @@
 
    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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list