mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Remove the Python 2.4 dependency and use just 'python'
Many Linux distributions are including python2.5 by default, as it is the latest stable release of the language. Using python2.4 (and asking users to specifically install it) is just cruel and unusual punishment. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
parent
0734600ce0
commit
7542d664de
2
main.py
2
main.py
@ -15,7 +15,7 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
magic='--calling-python-from-/bin/sh--'
|
magic='--calling-python-from-/bin/sh--'
|
||||||
"""exec" python2.4 -E "$0" "$@" """#$magic"
|
"""exec" python -E "$0" "$@" """#$magic"
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
if sys.argv[-1] == '#%s' % magic:
|
if sys.argv[-1] == '#%s' % magic:
|
||||||
|
4
repo
4
repo
@ -20,7 +20,7 @@ REPO_REV='stable'
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
magic='--calling-python-from-/bin/sh--'
|
magic='--calling-python-from-/bin/sh--'
|
||||||
"""exec" python2.4 -E "$0" "$@" """#$magic"
|
"""exec" python -E "$0" "$@" """#$magic"
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
import sys
|
import sys
|
||||||
if sys.argv[-1] == '#%s' % magic:
|
if sys.argv[-1] == '#%s' % magic:
|
||||||
@ -28,7 +28,7 @@ if __name__ == '__main__':
|
|||||||
del magic
|
del magic
|
||||||
|
|
||||||
# increment this whenever we make important changes to this script
|
# increment this whenever we make important changes to this script
|
||||||
VERSION = (1, 4)
|
VERSION = (1, 5)
|
||||||
|
|
||||||
# increment this if the MAINTAINER_KEYS block is modified
|
# increment this if the MAINTAINER_KEYS block is modified
|
||||||
KEYRING_VERSION = (1,0)
|
KEYRING_VERSION = (1,0)
|
||||||
|
Loading…
Reference in New Issue
Block a user