Limnoria/2to3/run.py

13 lines
370 B
Python

#! /usr/bin/python2.7
import sys
from lib2to3.main import main
import fix_def_iteritems, fix_def_itervalues, fix_def_iterkeys
# Hacks
sys.modules['lib2to3.fixes.fix_def_iteritems'] = fix_def_iteritems
sys.modules['lib2to3.fixes.fix_def_itervalues'] = fix_def_itervalues
sys.modules['lib2to3.fixes.fix_def_iterkeys'] = fix_def_iterkeys
sys.exit(main("lib2to3.fixes"))