summaryrefslogtreecommitdiff
path: root/django/utils/timezone.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2022-01-28 20:15:53 +0000
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-10-31 12:30:13 +0100
commitd3cb91db87b78629c0d2682630e90a048275179e (patch)
tree92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/utils/timezone.py
parenta320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff)
Used more augmented assignment statements.
Identified using the following command: $ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/utils/timezone.py')
-rw-r--r--django/utils/timezone.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/timezone.py b/django/utils/timezone.py
index 2107ec96ae..f3eac0e7b2 100644
--- a/django/utils/timezone.py
+++ b/django/utils/timezone.py
@@ -334,7 +334,7 @@ def _is_pytz_zone(tz):
_PYTZ_BASE_CLASSES = (pytz.tzinfo.BaseTzInfo, pytz._FixedOffset)
# In releases prior to 2018.4, pytz.UTC was not a subclass of BaseTzInfo
if not isinstance(pytz.UTC, pytz._FixedOffset):
- _PYTZ_BASE_CLASSES = _PYTZ_BASE_CLASSES + (type(pytz.UTC),)
+ _PYTZ_BASE_CLASSES += (type(pytz.UTC),)
return isinstance(tz, _PYTZ_BASE_CLASSES)