Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced all instances of 'python' with 'python2' #22

Merged
merged 1 commit into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Documentation/md2man.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os, markdown, re
from BeautifulSoup import BeautifulSoup

Expand Down
4 changes: 2 additions & 2 deletions install.do
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ for d in *.py version/*.py; do
fix=$(echo $d | sed 's,-,_,g')
$INSTALL -m 0644 $d $LIBDIR/$fix
done
python -mcompileall $LIBDIR
python2 -mcompileall $LIBDIR

# It's important for the file to actually be named 'sh'. Some shells (like
# bash and zsh) only go into POSIX-compatible mode if they have that name.
Expand All @@ -37,7 +37,7 @@ for dd in redo*.py; do
d=$(basename $dd .py)
fix=$(echo $d | sed -e 's,-,_,g')
cat >install.wrapper <<-EOF
#!/usr/bin/python
#!/usr/bin/python2
import sys, os;
exedir = os.path.dirname(os.path.realpath(os.path.abspath(sys.argv[0])))
sys.path.insert(0, os.path.join(exedir, '../lib/redo'))
Expand Down
2 changes: 1 addition & 1 deletion redo-always.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os
import vars, state
from log import err
Expand Down
2 changes: 1 addition & 1 deletion redo-ifchange.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os

import vars_init
Expand Down
2 changes: 1 addition & 1 deletion redo-ifcreate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os
import vars, state
from log import err
Expand Down
2 changes: 1 addition & 1 deletion redo-ood.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os

import vars_init
Expand Down
2 changes: 1 addition & 1 deletion redo-sources.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os

import vars_init
Expand Down
2 changes: 1 addition & 1 deletion redo-stamp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os
import vars, state
from log import err, debug2
Expand Down
2 changes: 1 addition & 1 deletion redo-targets.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os

import vars_init
Expand Down
2 changes: 1 addition & 1 deletion redo-unlocked.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os
import state
from log import err
Expand Down
2 changes: 1 addition & 1 deletion redo-whichdo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os

import vars_init
Expand Down
2 changes: 1 addition & 1 deletion redo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os
import options
from helpers import atoi
Expand Down
2 changes: 1 addition & 1 deletion t/101-atime/tick
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import time

t1 = int(time.time())
Expand Down
2 changes: 1 addition & 1 deletion t/130-mode/all.do
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
umask 0022
redo mode1
MODE=$(python -c 'import os; print oct(os.stat("mode1").st_mode & 07777)')
MODE=$(python2 -c 'import os; print oct(os.stat("mode1").st_mode & 07777)')
[ "$MODE" = "0644" ] || exit 78

2 changes: 1 addition & 1 deletion t/flush-cache
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python2
import sys, os, sqlite3

if "DO_BUILT" in os.environ:
Expand Down