[Python-checkins] cpython (2.7): correct signature for tzinfo.dst() in examples; thanks to Daniil Shved from
sandro.tosi
python-checkins at python.org
Tue Nov 1 10:34:37 CET 2011
http://hg.python.org/cpython/rev/a38dd36a44fa
changeset: 73269:a38dd36a44fa
branch: 2.7
parent: 73266:1689b9cf6b1c
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Tue Nov 01 10:31:26 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
@@ -1385,13 +1385,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