From 69f539851bcc49948bc4996926c2523114678a21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20M=C3=B6hn?= Date: Fri, 13 Feb 2015 09:03:16 +0100 Subject: [PATCH] Clarify comments in git-show recipe --- docs/recipes/git-show.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/recipes/git-show.rst b/docs/recipes/git-show.rst index 0f4935d..4a17539 100644 --- a/docs/recipes/git-show.rst +++ b/docs/recipes/git-show.rst @@ -44,8 +44,8 @@ Show all files in commit Produce something like a ``git show`` message ====================================================================== -In order to display timezone information you have to create a subclass of -tzinfo as described in the `Python datetime documentation`_:: +In order to display time zone information you have to create a subclass +of tzinfo as described in the `Python datetime documentation`_:: from datetime import tzinfo, timedelta class FixedOffset(tzinfo): @@ -58,10 +58,10 @@ tzinfo as described in the `Python datetime documentation`_:: return self.__offset def tzname(self, dt): - return None + return None # we don't know the time zone's name def dst(self, dt): - return timedelta(0) # dealing with DST would be too complicated + return timedelta(0) # we don't know about DST .. _Python datetime documentation: https://docs.python.org/2/library/datetime.html#tzinfo-objects