From: Xiang Zhang Date: Tue, 27 Dec 2016 04:21:28 +0000 (+0800) Subject: Issue #29078: Add the missing import in datetime.time doc example. X-Git-Tag: v2.7.14rc1~319 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58c2c6ebb893917e759cc1401b0d862b3f7c1a94;p=thirdparty%2FPython%2Fcpython.git Issue #29078: Add the missing import in datetime.time doc example. Patch by Dhushyanth Ramasamy. --- diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst index 5c4ff38188e4..b8d86e3b5a73 100644 --- a/Doc/library/datetime.rst +++ b/Doc/library/datetime.rst @@ -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) diff --git a/Misc/ACKS b/Misc/ACKS index 9cbc230fc068..ee73c542a25e 100644 --- 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