summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2012-10-23 13:26:44 +0100
committerRoss Lagerwall <rosslagerwall@gmail.com>2012-10-23 13:26:44 +0100
commit4b5f32a59e125cbfcb69ca5e57e48634822a800c (patch)
tree935f28e7c8b575f26c71a294911758f0261bee19
parent8827dbc3e9f0135d4c88a8ed803c7cabe16f94b8 (diff)
downloadlibevent-4b5f32a59e125cbfcb69ca5e57e48634822a800c.tar.gz
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.
-rwxr-xr-xevent_rpcgen.py2
-rwxr-xr-xmake_epoll_table.py2
-rwxr-xr-xtest/check-dumpevents.py2
-rwxr-xr-xtest/test.sh4
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 <provos@citi.umich.edu>
# 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