summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-07-18 15:37:14 +0200
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 10:09:43 -0300
commit1ecf6889cabc9f3f60d3fdd651468cddd8f4da6e (patch)
tree77eebf89eaf5f1ee6f5947a962caa67b5cca7f4b /django/utils
parent1909108f9f0f2a91c1ec0fcdb65b01f58743a871 (diff)
Removed double spaces after periods and within phrases.
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/archive.py2
-rw-r--r--django/utils/crypto.py2
-rw-r--r--django/utils/timesince.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/django/utils/archive.py b/django/utils/archive.py
index 56f34c0038..4042e89af9 100644
--- a/django/utils/archive.py
+++ b/django/utils/archive.py
@@ -101,7 +101,7 @@ class Archive:
class BaseArchive:
"""
- Base Archive class. Implementations should inherit this class.
+ Base Archive class. Implementations should inherit this class.
"""
@staticmethod
diff --git a/django/utils/crypto.py b/django/utils/crypto.py
index 5134b854d6..4b8146695a 100644
--- a/django/utils/crypto.py
+++ b/django/utils/crypto.py
@@ -35,7 +35,7 @@ def salted_hmac(key_salt, value, secret=None, *, algorithm="sha1"):
raise InvalidAlgorithm(
"%r is not an algorithm accepted by the hashlib module." % algorithm
) from e
- # We need to generate a derived key from our base key. We can do this by
+ # We need to generate a derived key from our base key. We can do this by
# passing the key_salt and our base key through a pseudo-random function.
key = hasher(key_salt + secret).digest()
# If len(key_salt + secret) > block size of the hash algorithm, the above
diff --git a/django/utils/timesince.py b/django/utils/timesince.py
index 766b6f7030..a61b02d94d 100644
--- a/django/utils/timesince.py
+++ b/django/utils/timesince.py
@@ -39,7 +39,7 @@ def timesince(d, now=None, reversed=False, time_strings=None, depth=2):
but also between 2007/08/10 and 2008/09/10 despite the delta being 393 days
in the former case and 397 in the latter.
- Up to `depth` adjacent units will be displayed. For example,
+ Up to `depth` adjacent units will be displayed. For example,
"2 weeks, 3 days" and "1 year, 3 months" are possible outputs, but
"2 weeks, 3 hours" and "1 year, 5 days" are not.