2011/2/22 brett.cannon <python-check...@python.org>:
> Author: brett.cannon
> Date: Tue Feb 22 20:12:43 2011
> New Revision: 88503
>
> Log:
> Add lib2to3.__main__ to make it easier for debugging purposes to run 2to3.

Please revert this and do it in the sandbox.

>
> Added:
>   python/branches/py3k/Lib/lib2to3/__main__.py
> Modified:
>   python/branches/py3k/Tools/scripts/2to3
>
> Added: python/branches/py3k/Lib/lib2to3/__main__.py
> ==============================================================================
> --- (empty file)
> +++ python/branches/py3k/Lib/lib2to3/__main__.py        Tue Feb 22 20:12:43 
> 2011
> @@ -0,0 +1,4 @@
> +import sys
> +from .main import main
> +
> +sys.exit(main("lib2to3.fixes"))
>
> Modified: python/branches/py3k/Tools/scripts/2to3
> ==============================================================================
> --- python/branches/py3k/Tools/scripts/2to3     (original)
> +++ python/branches/py3k/Tools/scripts/2to3     Tue Feb 22 20:12:43 2011
> @@ -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)
> _______________________________________________
> Python-checkins mailing list
> python-check...@python.org
> http://mail.python.org/mailman/listinfo/python-checkins
>



-- 
Regards,
Benjamin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to