From db0eda65bccd339379f4ed479e8dd4e34d40560b Mon Sep 17 00:00:00 2001 From: Francis Lavoie Date: Tue, 21 May 2013 18:03:03 -0400 Subject: [PATCH] replaced 4 spaces tabs for 2 spaces tab --- plugins/python/pybeautifyjson.fish | 5 ++--- plugins/python/pyclean.fish | 14 +++++++------- plugins/python/pyhttp.fish | 12 ++++++------ plugins/python/pysmtp.fish | 14 +++++++------- 4 files changed, 22 insertions(+), 23 deletions(-) diff --git a/plugins/python/pybeautifyjson.fish b/plugins/python/pybeautifyjson.fish index 0bf6c9f..ab2d9ca 100644 --- a/plugins/python/pybeautifyjson.fish +++ b/plugins/python/pybeautifyjson.fish @@ -1,6 +1,5 @@ # beautify json string # use : pybeautifyjson '{"foo": "lorem", "bar": "ipsum"}' function pybeautifyjson - echo $argv | python -mjson.tool -end - + echo $argv | python -mjson.tool +end \ No newline at end of file diff --git a/plugins/python/pyclean.fish b/plugins/python/pyclean.fish index 9d5e6cd..edceb0f 100644 --- a/plugins/python/pyclean.fish +++ b/plugins/python/pyclean.fish @@ -1,10 +1,10 @@ # clean current directory recursively from any .pyc and .pyo files function pyclean - if test -n $argv - set path2CLEAN $argv - else - set path2CLEAN . - end + if test -n $argv + set path2CLEAN $argv + else + set path2CLEAN . + end - find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete - end \ No newline at end of file + find $path2CLEAN -name "*.pyc" -delete -o -name "*.pyo" -delete +end \ No newline at end of file diff --git a/plugins/python/pyhttp.fish b/plugins/python/pyhttp.fish index b95536e..06c6c8b 100644 --- a/plugins/python/pyhttp.fish +++ b/plugins/python/pyhttp.fish @@ -1,9 +1,9 @@ # start in-place a simple http server, take a optional parameter for the port number function pyhttp - if test -n "$argv" - set HTTPPORT $argv - else - set HTTPPORT 1025 - end - python -m SimpleHTTPServer $HTTPPORT; + if test -n "$argv" + set HTTPPORT $argv + else + set HTTPPORT 1025 + end + python -m SimpleHTTPServer $HTTPPORT; end diff --git a/plugins/python/pysmtp.fish b/plugins/python/pysmtp.fish index d248f86..3872f48 100644 --- a/plugins/python/pysmtp.fish +++ b/plugins/python/pysmtp.fish @@ -1,10 +1,10 @@ # start smtp debugging server, can pass an option port parameter. Default to 1025 function pysmtp - if test -n "$argv" - set SMTPPORT $argv - else - set SMTPPORT 1025 - end - echo "smtp server started on port" $SMTPPORT; - python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT; + if test -n "$argv" + set SMTPPORT $argv + else + set SMTPPORT 1025 + end + echo "smtp server started on port" $SMTPPORT; + python -m smtpd -n -c DebuggingServer localhost:$SMTPPORT; end