Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.

This commit is contained in:
Brett Cannon 2011-02-22 19:12:43 +00:00
parent bd258bd4c6
commit 4cfa24757b
2 changed files with 6 additions and 3 deletions

4
Lib/lib2to3/__main__.py Normal file
View File

@ -0,0 +1,4 @@
import sys
from .main import main
sys.exit(main("lib2to3.fixes"))

View File

@ -1,5 +1,4 @@
#!/usr/bin/env python
import sys
from lib2to3.main import main
import runpy
sys.exit(main("lib2to3.fixes"))
runpy.run_module('lib2to3', run_name='__main__', alter_sys=True)