[PATCH] python/osmo-python-tests[master]: osmo_ctrl.py: Set shebang to use python v2

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Dec 11 13:04:09 UTC 2017


Hello Harald Welte,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/5270

to look at the new patch set (#2).

osmo_ctrl.py: Set shebang to use python v2

Nowadays bin/python usually points to python3, and this script is written
in python2, which means if run directly from terminal it will fail with
some print syntax errors.

Change-Id: I24a568fc2c3e69e7c9f7b9729bd023fe1f0691c7
---
M osmopy/osmo_ctrl.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/python/osmo-python-tests refs/changes/70/5270/2

diff --git a/osmopy/osmo_ctrl.py b/osmopy/osmo_ctrl.py
index 003f100..2b8c4be 100755
--- a/osmopy/osmo_ctrl.py
+++ b/osmopy/osmo_ctrl.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python2
 # -*- mode: python-mode; py-indent-tabs-mode: nil -*-
 """
 /*

-- 
To view, visit https://gerrit.osmocom.org/5270
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I24a568fc2c3e69e7c9f7b9729bd023fe1f0691c7
Gerrit-PatchSet: 2
Gerrit-Project: python/osmo-python-tests
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list