From e457f0d220a711c396d22fe7912d7bd620fedbc3 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Wed, 23 Feb 2011 18:48:52 +0000 Subject: [PATCH] Revert r88503 as Benjamin's request. --- Lib/lib2to3/__main__.py | 4 ---- Tools/scripts/2to3 | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 Lib/lib2to3/__main__.py diff --git a/Lib/lib2to3/__main__.py b/Lib/lib2to3/__main__.py deleted file mode 100644 index 80688baf27a..00000000000 --- a/Lib/lib2to3/__main__.py +++ /dev/null @@ -1,4 +0,0 @@ -import sys -from .main import main - -sys.exit(main("lib2to3.fixes")) diff --git a/Tools/scripts/2to3 b/Tools/scripts/2to3 index 2eb5dad00a4..fbd4aa6b838 100755 --- a/Tools/scripts/2to3 +++ b/Tools/scripts/2to3 @@ -1,4 +1,5 @@ #!/usr/bin/env python -import runpy +import sys +from lib2to3.main import main -runpy.run_module('lib2to3', run_name='__main__', alter_sys=True) +sys.exit(main("lib2to3.fixes"))