Issue 12942: Shebang line fixer for 2to3

Issue12942

Created on 2011-09-09 01:28 by Aaron.Meurer, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg143749 - (view) Author: Aaron Meurer (Aaron.Meurer) Date: 2011-09-09 01:28
As suggested in this thread in the Python porting list (http://mail.python.org/pipermail/python-porting/2011-September/000231.html), it would be nice if 2to3 had a fixer that translated shebang lines from 

#! /usr/bin/env python

to

#! /usr/bin/env python3

Also relevant here is the draft PEP 394 (http://www.python.org/dev/peps/pep-0394/), which apparently is likely to be accepted.
msg221576 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-25 21:48
"nice to have" isn't much of a requirement in my book.  The Python launcher for Windows http://legacy.python.org/dev/peps/pep-0397/ is also relevant.
History
Date User Action Args
2022-04-11 14:57:21adminsetgithub: 57151
2021-10-20 23:01:20iritkatrielsetstatus: open -> closed
superseder: Close 2to3 issues and list them here
resolution: wont fix
stage: test needed -> resolved
2019-03-15 23:53:08BreamoreBoysetnosy: - BreamoreBoy
2014-06-26 07:48:47serhiy.storchakasetnosy: + benjamin.peterson

type: enhancement
versions: + Python 3.4

2014-06-25 21:48:37BreamoreBoysetnosy: + BreamoreBoy
messages: + msg221576
2011-09-10 07:16:47VPericsetnosy: + VPeric
2011-09-09 19:52:59terry.reedysetstage: test needed
2011-09-09 15:10:05barrysetnosy: + barry
2011-09-09 04:11:22ezio.melottisetnosy: + ezio.melotti
2011-09-09 01:28:03Aaron.Meurercreate