summaryrefslogtreecommitdiffstats
path: root/Doc/includes/tzinfo-examples.py
diff options
context:
space:
mode:
authorAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-12-24 00:27:27 (GMT)
committerAlexander Belopolsky <alexander.belopolsky@gmail.com>2010-12-24 00:27:27 (GMT)
commitbd584d21e75551d6c59313dc8c757e2c57ecae85 (patch)
tree79f46993c51cfd46341b9c433d4b6d85f956cf3a /Doc/includes/tzinfo-examples.py
parent5b859950d178fd8a900764be8c8087b25cfd6bad (diff)
downloadcpython-bd584d21e75551d6c59313dc8c757e2c57ecae85.zip
cpython-bd584d21e75551d6c59313dc8c757e2c57ecae85.tar.gz
cpython-bd584d21e75551d6c59313dc8c757e2c57ecae85.tar.bz2
Merged revisions 87463 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87463 | alexander.belopolsky | 2010-12-23 19:24:11 -0500 (Thu, 23 Dec 2010) | 1 line Issue #9063: Corrected the tzinfo example. ........
Diffstat (limited to 'Doc/includes/tzinfo-examples.py')
-rw-r--r--Doc/includes/tzinfo-examples.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/tzinfo-examples.py b/Doc/includes/tzinfo-examples.py
index 2de95d4..5132429 100644
--- a/Doc/includes/tzinfo-examples.py
+++ b/Doc/includes/tzinfo-examples.py
@@ -71,7 +71,7 @@ class LocalTimezone(tzinfo):
def _isdst(self, dt):
tt = (dt.year, dt.month, dt.day,
dt.hour, dt.minute, dt.second,
- dt.weekday(), 0, -1)
+ dt.weekday(), 0, 0)
stamp = _time.mktime(tt)
tt = _time.localtime(stamp)
return tt.tm_isdst > 0