mirror of
https://github.com/django/django.git
synced 2024-12-25 18:46:22 +00:00
Fixed #13123 -- Cleaned up template loader for PyPy compatibility. Thanks to avostryakov for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12805 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
10de2a837f
commit
003fe52225
@ -85,7 +85,7 @@ def make_origin(display_name, loader, name, dirs):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def find_template_loader(loader):
|
def find_template_loader(loader):
|
||||||
if hasattr(loader, '__iter__'):
|
if isinstance(loader, (tuple, list)):
|
||||||
loader, args = loader[0], loader[1:]
|
loader, args = loader[0], loader[1:]
|
||||||
else:
|
else:
|
||||||
args = []
|
args = []
|
||||||
|
Loading…
Reference in New Issue
Block a user