diff options
author | Xiang Zhang <angwerzx@126.com> | 2016-12-27 04:23:59 (GMT) |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2016-12-27 04:23:59 (GMT) |
commit | 6721c7c3b2b25a76b76c1660e8da5efdefd91122 (patch) | |
tree | fc7b27cb3000b50d6c3c9cb991a1922132a3b20d | |
parent | 4398c12b472b1e7b653d273500bbcd9988eaec1f (diff) | |
download | cpython-6721c7c3b2b25a76b76c1660e8da5efdefd91122.zip cpython-6721c7c3b2b25a76b76c1660e8da5efdefd91122.tar.gz cpython-6721c7c3b2b25a76b76c1660e8da5efdefd91122.tar.bz2 |
Issue #29078: Add the missing import in datetime.time doc example.
Patch by Dhushyanth Ramasamy.
-rw-r--r-- | Doc/library/datetime.rst | 2 | ||||
-rw-r--r-- | Misc/ACKS | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index b42e38d..4f3cfe3 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -1460,7 +1460,7 @@ Instance methods: Example: - >>> from datetime import time, tzinfo + >>> from datetime import time, tzinfo, timedelta >>> class GMT1(tzinfo): ... def utcoffset(self, dt): ... return timedelta(hours=1) @@ -1677,7 +1677,6 @@ Nickolai Zeldovich Yuxiao Zeng Uwe Zessin Cheng Zhang -Xiang Zhang Kai Zhu Tarek Ziadé Jelle Zijlstra @@ -1686,3 +1685,4 @@ Doug Zongker Peter Åstrand evilzero Chi Hsuan Yen +Dhushyanth Ramasamy |