mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 04:19:10 -04:00
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.
This commit is contained in:
parent
8827dbc3e9
commit
4b5f32a59e
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu>
|
# Copyright (c) 2005-2007 Niels Provos <provos@citi.umich.edu>
|
||||||
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
# Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python2
|
||||||
|
|
||||||
def get(old,wc,rc):
|
def get(old,wc,rc):
|
||||||
if ('xxx' in (rc, wc)):
|
if ('xxx' in (rc, wc)):
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#!/usr/bin/python
|
#!/usr/bin/python2
|
||||||
#
|
#
|
||||||
# Post-process the output of test-dumpevents and check it for correctness.
|
# Post-process the output of test-dumpevents and check it for correctness.
|
||||||
#
|
#
|
||||||
|
@ -76,8 +76,8 @@ run_tests () {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
announce_n " test-dumpevents: "
|
announce_n " test-dumpevents: "
|
||||||
if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then
|
if python2 -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 $TEST_DIR/test-dumpevents | python2 $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ;
|
||||||
then
|
then
|
||||||
announce OKAY ;
|
announce OKAY ;
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user