#13124: function 'find_template_loader' doesn't work with PyPy 1.2 ---------------------------------+------------------------------------------ Reporter: avostryakov | Owner: nobody Status: new | Milestone: 1.2 Component: Template system | Version: 1.2-beta Keywords: find template, pypy | Stage: Unreviewed Has_patch: 1 | ---------------------------------+------------------------------------------ I tested django template system under PyPy 1.2. Basically it works except one small line of code in function 'find_template_loader; (<root project's directory>/django/template/loader.py):
'if hasattr(loader, '__iter__'):' I suggest to replace this line with: 'if isinstance(loader, tuple):' The patch is attached. I think it'll be better because a new code doesn't use a little tricky feature of python. Class 'string' doesn't have '__iter__' attribute but can be iterated. -- Ticket URL: <http://code.djangoproject.com/ticket/13124> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.