summaryrefslogtreecommitdiff
path: root/django/db/backends/utils.py
diff options
context:
space:
mode:
authorAnton Samarchyan <anton.samarchyan@savoirfairelinux.com>2017-01-24 18:04:12 -0500
committerTim Graham <timograham@gmail.com>2017-02-28 09:17:27 -0500
commit60e52a047e55bc4cd5a93a8bd4d07baed27e9a22 (patch)
tree010a363968b1ed41adf2e64c98d572d7148a2a5e /django/db/backends/utils.py
parentd6e26e5b7c8063c2cc5aa045edea6555bf358fc2 (diff)
downloaddjango-60e52a047e55bc4cd5a93a8bd4d07baed27e9a22.tar.gz
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
Diffstat (limited to 'django/db/backends/utils.py')
-rw-r--r--django/db/backends/utils.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/django/db/backends/utils.py b/django/db/backends/utils.py
index b5ad5f17a2..5dd6d85486 100644
--- a/django/db/backends/utils.py
+++ b/django/db/backends/utils.py
@@ -114,7 +114,7 @@ class CursorDebugWrapper(CursorWrapper):
###############################################
def typecast_date(s):
- return datetime.date(*map(int, s.split('-'))) if s else None # returns None if s is null
+ return datetime.date(*map(int, s.split('-'))) if s else None # return None if s is null
def typecast_time(s): # does NOT store time zone information
@@ -136,8 +136,7 @@ def typecast_timestamp(s): # does NOT store time zone information
if ' ' not in s:
return typecast_date(s)
d, t = s.split()
- # Extract timezone information, if it exists. Currently we just throw
- # it away, but in the future we may make use of it.
+ # Extract timezone information, if it exists. Currently it's ignored.
if '-' in t:
t, tz = t.split('-', 1)
tz = '-' + tz
@@ -195,7 +194,7 @@ def truncate_name(name, length=None, hash_len=4):
def format_number(value, max_digits, decimal_places):
"""
- Formats a number into a string with the requisite number of digits and
+ Format a number into a string with the requisite number of digits and
decimal places.
"""
if value is None: