From 4b5f32a59e125cbfcb69ca5e57e48634822a800c Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Tue, 23 Oct 2012 13:26:44 +0100 Subject: [PATCH] Use python2 rather than python python may refer to either python2 or python3 so rather by explicit by using python2. See PEP 394 - http://www.python.org/dev/peps/pep-0394/ for more details. --- event_rpcgen.py | 2 +- make_epoll_table.py | 2 +- test/check-dumpevents.py | 2 +- test/test.sh | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/event_rpcgen.py b/event_rpcgen.py index c43e1152..c5375656 100755 --- a/event_rpcgen.py +++ b/event_rpcgen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python2 # # Copyright (c) 2005-2007 Niels Provos # Copyright (c) 2007-2012 Niels Provos and Nick Mathewson diff --git a/make_epoll_table.py b/make_epoll_table.py index e77191c8..37d6df1e 100755 --- a/make_epoll_table.py +++ b/make_epoll_table.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 def get(old,wc,rc): if ('xxx' in (rc, wc)): diff --git a/test/check-dumpevents.py b/test/check-dumpevents.py index 7d749323..16fe9bc9 100755 --- a/test/check-dumpevents.py +++ b/test/check-dumpevents.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python2 # # Post-process the output of test-dumpevents and check it for correctness. # diff --git a/test/test.sh b/test/test.sh index 610a2795..d47bd2d8 100755 --- a/test/test.sh +++ b/test/test.sh @@ -76,8 +76,8 @@ run_tests () { fi done announce_n " test-dumpevents: " - if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then - if $TEST_DIR/test-dumpevents | python $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; + if python2 -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then + if $TEST_DIR/test-dumpevents | python2 $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ; then announce OKAY ; else -- 2.40.0