Limnoria/2to3/run.py

14 lines
435 B
Python
Raw Normal View History

#! /usr/bin/python2.7
import sys
from lib2to3.main import main
2012-08-05 13:28:09 +02:00
import fix_def_iteritems, fix_def_itervalues, fix_def_iterkeys, fix_reload
# 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
2012-08-05 13:28:09 +02:00
sys.modules['lib2to3.fixes.fix_reload'] = fix_reload
sys.exit(main("lib2to3.fixes"))