Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4cfa2475
Commit
4cfa2475
authored
Feb 22, 2011
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
parent
bd258bd4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Lib/lib2to3/__main__.py
Lib/lib2to3/__main__.py
+4
-0
Tools/scripts/2to3
Tools/scripts/2to3
+2
-3
No files found.
Lib/lib2to3/__main__.py
0 → 100644
View file @
4cfa2475
import
sys
from
.main
import
main
sys
.
exit
(
main
(
"lib2to3.fixes"
))
Tools/scripts/2to3
View file @
4cfa2475
#!/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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment