Refs #27656 -- Updated django.utils docstring verbs according to PEP 257.

This commit is contained in:
Anton Samarchyan 2017-01-24 15:32:33 -05:00 committed by Tim Graham
parent 98bcc5d81b
commit 9718fa2e8a
30 changed files with 255 additions and 329 deletions

View file

@ -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 ""