Commit 003fe522 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #13123 -- Cleaned up template loader for PyPy compatibility. Thanks to...

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
parent 10de2a83
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ def make_origin(display_name, loader, name, dirs):
        return None

def find_template_loader(loader):
    if hasattr(loader, '__iter__'):
    if isinstance(loader, (tuple, list)):
        loader, args = loader[0], loader[1:]
    else:
        args = []