From 282093c61bb4ab29d4a19296969726af1b8abca8 Mon Sep 17 00:00:00 2001 From: Randy Topliffe Date: Wed, 27 Aug 2014 11:55:50 -0400 Subject: [PATCH] Python dependency & compatiblity change - Fixed small python code so it supports python 2.6+ and python 3.3+ - Added into the README that python is a dependency --- README.mkd | 4 ++++ fidget.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.mkd b/README.mkd index 7f362a4..19ec4fd 100644 --- a/README.mkd +++ b/README.mkd @@ -8,6 +8,10 @@ I am a web developer and the whole concept of trying out small chunks of program **WHERE IS MY VIM....?** this plugin answers that (it also does *live update* say whatt) +## Dependencies + +- Python 2.6+ or 3.3+ + ## Installation - Manual installation: diff --git a/fidget.sh b/fidget.sh index f67db9e..196c240 100755 --- a/fidget.sh +++ b/fidget.sh @@ -5,7 +5,7 @@ if [ "$FIDGETDIR" == "" ]; then fi if [ "$1" == "" ]; then - FIDGET=$FIDGETDIR/`python -c "import random; print hex(int(str(random.random())[2:10]))[2:]"` + FIDGET=$FIDGETDIR/`python -c "import random; print (hex(int(str(random.random())[2:10])))[2:]"` else FIDGET=$FIDGETDIR/$1 fi