Mercurial > hg > config
changeset 564:047a53a8fbad
py3
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 19 Dec 2013 18:03:05 -0800 |
parents | 2daf6543e42c |
children | 7b70e5c0d410 |
files | .bash_overrides .bashrc |
diffstat | 2 files changed, 8 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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`" ]]
--- 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