# HG changeset patch # User Jeff Hammel # Date 1387504985 28800 # Node ID 047a53a8fbad08861b6fdd901f17e4338a43cf21 # Parent 2daf6543e42c2e4e6e9fe8071466481ffcca6d87 py3 diff -r 2daf6543e42c -r 047a53a8fbad .bash_overrides --- a/.bash_overrides Sun Dec 15 22:19:05 2013 -0800 +++ b/.bash_overrides Thu Dec 19 18:03:05 2013 -0800 @@ -54,7 +54,7 @@ if [ -n "${ENV}" ] then - FULLPWD=$(python -c 'import os; print os.getcwd()') + FULLPWD=$(python -c 'import os; print (os.getcwd())') if (( ! `expr match "${FULLPWD}" "${ENV}"` )) then if [[ -n "`type -t deactivate`" ]] diff -r 2daf6543e42c -r 047a53a8fbad .bashrc --- a/.bashrc Sun Dec 15 22:19:05 2013 -0800 +++ b/.bashrc Thu Dec 19 18:03:05 2013 -0800 @@ -32,13 +32,13 @@ export JS_EDITLINE=1 # aliases -alias awd="python -c 'import os; print os.path.realpath(\".\")'" +alias awd="python -c 'import os; print (os.path.realpath(\".\"))'" alias currentpatch='echo `hg root`/.hg/patches/`hg qapp -v | tail -n 1 | cut -f 3 -d " "`' alias datestamp='date +%Y%m%d%H%M%S' alias grep='grep --colour=auto' alias ls='ls --color=auto' alias patch='patch --reject-file=-' -alias random="python -c 'import sys, random; foo = sys.argv[1:]; random.shuffle(foo); print \" \".join(foo)'" +alias random="python -c 'import sys, random; foo = sys.argv[1:]; random.shuffle(foo); print (\" \".join(foo)')" alias straceff="attach.py firefox --kill" alias weekstamp="date --date=\"$((`date '+%u'`-1)) days ago\" '+%b %d'" alias wget='wget --no-check-certificate' @@ -73,7 +73,7 @@ ### functions lspath() { -python -c 'import os; print "\n".join(os.environ["PATH"].split(os.path.pathsep))' +python -c 'import os; print ("\n".join(os.environ["PATH"].split(os.path.pathsep)))' } apply-patch() { @@ -246,7 +246,7 @@ fn() { # full name - python -c "import os; print os.path.realpath('$*')" + python -c "import os; print (os.path.realpath('$*'))" } swap() { @@ -334,7 +334,7 @@ # which -> real paths command which $@ | while read line do - python -c "import os; print os.path.realpath('${line}')" + python -c "import os; print (os.path.realpath('${line}'))" done } @@ -353,7 +353,7 @@ pyfile() { # python file path - python -c "import $1; print $1.__file__" + python -c "import $1; print ($1.__file__)" } setup-all() { @@ -381,7 +381,7 @@ else directory=$1 fi -directory=$(python -c "import os; print os.path.abspath('${directory}')") +directory=$(python -c "import os; print (os.path.abspath('${directory}'))") while [[ "${directory}" != "/" ]] do