[Python-checkins] cpython (2.7): Issue #29078: Add the missing import in datetime.time doc example.
xiang.zhang
python-checkins at python.org
Mon Dec 26 23:39:08 EST 2016
https://hg.python.org/cpython/rev/878a91174e74
changeset: 105827:878a91174e74
branch: 2.7
parent: 105817:41a99a2a7198
user: Xiang Zhang <angwerzx at 126.com>
date: Tue Dec 27 12:21:28 2016 +0800
summary:
Issue #29078: Add the missing import in datetime.time doc example.
Patch by Dhushyanth Ramasamy.
files:
Doc/library/datetime.rst | 2 +-
Misc/ACKS | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1323,7 +1323,7 @@
Example:
- >>> from datetime import time, tzinfo
+ >>> from datetime import time, tzinfo, timedelta
>>> class GMT1(tzinfo):
... def utcoffset(self, dt):
... return timedelta(hours=1)
diff --git a/Misc/ACKS b/Misc/ACKS
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1573,3 +1573,4 @@
Jelle Zijlstra
Gennadiy Zlobin
Peter Åstrand
+Dhushyanth Ramasamy
\ No newline at end of file
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list