diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2018-09-28 18:57:12 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-09-28 09:57:12 -0400 |
| commit | 8ef8bc0f64c463684268a7c55f3d3da4de066c0d (patch) | |
| tree | 9c3ab782c6382bdbc91363d0dd5513df83381903 /django/template/engine.py | |
| parent | 4fc8fb7ddaad495d45d53df58b2d13115857b3c7 (diff) | |
Refs #28909 -- Simplifed code using unpacking generalizations.
Diffstat (limited to 'django/template/engine.py')
| -rw-r--r-- | django/template/engine.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/django/template/engine.py b/django/template/engine.py index 381d656bbb..dfaa67ba12 100644 --- a/django/template/engine.py +++ b/django/template/engine.py @@ -107,8 +107,7 @@ class Engine: def find_template_loader(self, loader): if isinstance(loader, (tuple, list)): - args = list(loader[1:]) - loader = loader[0] + loader, *args = loader else: args = [] |
