If you're using the local directory directly, rather than building and
installing Jinja2 via setup.py, you need to make the 2to3 updates
locally, using both the default fixers and our custom fixers.
Unfortunately, the stock 2to3 tool lacks an option for appending
custom fixer modules. This script is the simplest tweak that will
apply both sets of fixers.
--- /dev/null
+#!/usr/bin/python3.3
+import sys
+from lib2to3.main import main
+
+def run(fixer_pkg):
+ ret = main(fixer_pkg)
+ if ret:
+ sys.exit(ret)
+
+run('lib2to3.fixes')
+run('custom_fixers')