mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
This commit is contained in:
parent
bd258bd4c6
commit
4cfa24757b
2 changed files with 6 additions and 3 deletions
4
Lib/lib2to3/__main__.py
Normal file
4
Lib/lib2to3/__main__.py
Normal file
|
@ -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…
Add table
Add a link
Reference in a new issue