Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix jinjaext compatibility with Python 3 #171

merged 1 commit into from Apr 12, 2013


None yet
3 participants

mgorny commented Jan 13, 2013

I'm resending the patch from Arfrever for issue #115 because it seems that it has been missed because of the issue being closed.

mitsuhiko added a commit that referenced this pull request Apr 12, 2013

Merge pull request #171 from mgorny/master
Fix jinjaext compatibility with Python 3

@mitsuhiko mitsuhiko merged commit 77bcbfe into pallets:master Apr 12, 2013

thmo commented Aug 16, 2013

The patch adds this code:

from jinja2.utils import next

which doesn't work in jinja2 version 2.7+ anymore, because this code

# for python 2.x we create outselves a next() function that does the
# basics without exception catching.
    next = next
except NameError:
    def next(x):
        return x.next()

has been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment