summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/timezone.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/timezone.py b/django/utils/timezone.py
index 16e65fc62d..0476d46f7e 100644
--- a/django/utils/timezone.py
+++ b/django/utils/timezone.py
@@ -228,6 +228,9 @@ def now():
else:
return datetime.now()
+# By design, these four functions don't perform any checks on their arguments.
+# The caller should ensure that they don't receive an invalid value like None.
+
def is_aware(value):
"""
Determines if a given datetime.datetime is aware.