mirror of https://github.com/python/cpython
Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
This commit is contained in:
parent
bd258bd4c6
commit
4cfa24757b
|
@ -0,0 +1,4 @@
|
|||
import sys
|
||||
from .main import main
|
||||
|
||||
sys.exit(main("lib2to3.fixes"))
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue