mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Refs #28909 -- Simplifed code using unpacking generalizations.
This commit is contained in:
committed by
Tim Graham
parent
4fc8fb7dda
commit
8ef8bc0f64
@@ -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 = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user