summaryrefslogtreecommitdiff
path: root/django/utils/dateformat.py
diff options
context:
space:
mode:
authorAnton Samarchyan <anton.samarchyan@savoirfairelinux.com>2017-01-24 15:32:33 -0500
committerTim Graham <timograham@gmail.com>2017-02-11 16:11:08 -0500
commit9718fa2e8abe430c3526a9278dd976443d4ae3c6 (patch)
treecc9e2c659759bbfdb4c7785c59a909cb2655af0d /django/utils/dateformat.py
parent98bcc5d81bca578f3a5b4d47907ba4ac40446887 (diff)
Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.
Diffstat (limited to 'django/utils/dateformat.py')
-rw-r--r--django/utils/dateformat.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/django/utils/dateformat.py b/django/utils/dateformat.py
index 1deee1c377..6c8cab61f5 100644
--- a/django/utils/dateformat.py
+++ b/django/utils/dateformat.py
@@ -77,8 +77,7 @@ class TimeFormat(Formatter):
"""
Timezone name.
- If timezone information is not available, this method returns
- an empty string.
+ If timezone information is not available, return an empty string.
"""
if not self.timezone:
return ""
@@ -129,8 +128,7 @@ class TimeFormat(Formatter):
"""
Difference to Greenwich time in hours; e.g. '+0200', '-0430'.
- If timezone information is not available, this method returns
- an empty string.
+ If timezone information is not available, return an empty string.
"""
if not self.timezone:
return ""
@@ -163,8 +161,7 @@ class TimeFormat(Formatter):
"""
Time zone of this machine; e.g. 'EST' or 'MDT'.
- If timezone information is not available, this method returns
- an empty string.
+ If timezone information is not available, return an empty string.
"""
if not self.timezone:
return ""
@@ -191,8 +188,7 @@ class TimeFormat(Formatter):
timezones west of UTC is always negative, and for those east of UTC is
always positive.
- If timezone information is not available, this method returns
- an empty string.
+ If timezone information is not available, return an empty string.
"""
if not self.timezone:
return ""