summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-09-25 20:30:43 +0500
committerTim Graham <timograham@gmail.com>2018-09-25 11:30:43 -0400
commit553c24018e8a6746158c19b517b508eb03b0f7f9 (patch)
treee91c160801aa6759a6b61127115b904a65ee5f44
parentbb81c22d90e5eb168544670ead1a13aa9695fed5 (diff)
Removed unneeded list() calls in list.extend() argument.
-rw-r--r--django/apps/registry.py2
-rw-r--r--django/contrib/gis/geos/mutable_list.py2
-rw-r--r--django/core/management/commands/loaddata.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/django/apps/registry.py b/django/apps/registry.py
index e01352b1de..d7ac81af82 100644
--- a/django/apps/registry.py
+++ b/django/apps/registry.py
@@ -176,7 +176,7 @@ class Apps:
result = []
for app_config in self.app_configs.values():
- result.extend(list(app_config.get_models(include_auto_created, include_swapped)))
+ result.extend(app_config.get_models(include_auto_created, include_swapped))
return result
def get_model(self, app_label, model_name=None, require_ready=True):
diff --git a/django/contrib/gis/geos/mutable_list.py b/django/contrib/gis/geos/mutable_list.py
index 2d62e7bfa4..3e67906623 100644
--- a/django/contrib/gis/geos/mutable_list.py
+++ b/django/contrib/gis/geos/mutable_list.py
@@ -117,7 +117,7 @@ class ListMixin:
def __iadd__(self, other):
'add another list-like object to self'
- self.extend(list(other))
+ self.extend(other)
return self
def __mul__(self, n):
diff --git a/django/core/management/commands/loaddata.py b/django/core/management/commands/loaddata.py
index aaf9775407..595e19e5e6 100644
--- a/django/core/management/commands/loaddata.py
+++ b/django/core/management/commands/loaddata.py
@@ -298,7 +298,7 @@ class Command(BaseCommand):
continue
if os.path.isdir(app_dir):
dirs.append(app_dir)
- dirs.extend(list(fixture_dirs))
+ dirs.extend(fixture_dirs)
dirs.append('')
dirs = [os.path.abspath(os.path.realpath(d)) for d in dirs]
return dirs