]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #29078: Add the missing import in datetime.time doc example.
authorXiang Zhang <angwerzx@126.com>
Tue, 27 Dec 2016 04:21:28 +0000 (12:21 +0800)
committerXiang Zhang <angwerzx@126.com>
Tue, 27 Dec 2016 04:21:28 +0000 (12:21 +0800)
Patch by Dhushyanth Ramasamy.

Doc/library/datetime.rst
Misc/ACKS

index 5c4ff38188e4ee97a98e78a01c7c22dc61321a53..b8d86e3b5a732f79d4dacc5fc7e5c8cdf0024d60 100644 (file)
@@ -1323,7 +1323,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)
index 9cbc230fc068ff507431c3cbf80830c956f95065..ee73c542a25e5e05d16a4c6d1379393ab690ed1b 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1573,3 +1573,4 @@ Tarek Ziadé
 Jelle Zijlstra
 Gennadiy Zlobin
 Peter Ã…strand
+Dhushyanth Ramasamy
\ No newline at end of file