diff options
| author | Nick Pope <nick@nickpope.me.uk> | 2022-01-28 20:15:53 +0000 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-10-31 12:30:13 +0100 |
| commit | d3cb91db87b78629c0d2682630e90a048275179e (patch) | |
| tree | 92476354cbb4df1bcff3cd1514a1bac6cbc98676 /django/test | |
| parent | a320aab5129f4019b3c1d28b7a3b509582bc56f9 (diff) | |
Used more augmented assignment statements.
Identified using the following command:
$ git grep -I '\(\<[_a-zA-Z0-9]\+\>\) *= *\1 *[-+/*^%&|<>@]'
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index 270e34b69d..2b2b92c593 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -593,7 +593,7 @@ class modify_settings(override_settings): if isinstance(items, str): items = [items] if action == "append": - value = value + [item for item in items if item not in value] + value += [item for item in items if item not in value] elif action == "prepend": value = [item for item in items if item not in value] + value elif action == "remove": |
