commit | 4cfa24757b2f0946994aaa96ca5e135d30b49de3 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Tue Feb 22 19:12:43 2011 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Tue Feb 22 19:12:43 2011 +0000 |
tree | 13e5b67950ff0de1e37223160040d711c2d6d81e | |
parent | bd258bd4c6072e3b01ddcd2981d94d80ee158a34 [diff] [blame] |
Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.
diff --git a/Tools/scripts/2to3 b/Tools/scripts/2to3 index fbd4aa6..2eb5dad 100755 --- a/Tools/scripts/2to3 +++ b/Tools/scripts/2to3
@@ -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)