[gimp/meson: 3/9] Fix Python file tabs/spaces consistency
- From: Félix Piédallu <fpiedallu src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gimp/meson: 3/9] Fix Python file tabs/spaces consistency
 
- Date: Fri, 16 Feb 2018 13:56:25 +0000 (UTC)
 
commit c673cb8ef334e01c0035ff68200eddcc2169cf5a
Author: Félix Piédallu <felix piedallu me>
Date:   Wed Jan 10 13:34:24 2018 +0100
    Fix Python file tabs/spaces consistency
 plug-ins/pygimp/py-compile |   29 ++++++++++++++---------------
 1 files changed, 14 insertions(+), 15 deletions(-)
---
diff --git a/plug-ins/pygimp/py-compile b/plug-ins/pygimp/py-compile
index b60649d..0b31270 100755
--- a/plug-ins/pygimp/py-compile
+++ b/plug-ins/pygimp/py-compile
@@ -2,26 +2,26 @@
 # called as "py-compile [--basedir DIR] PY_FILES ...
 
 if [ -z "$PYTHON" ]; then
-  PYTHON=python
+    PYTHON=python
 fi
 
 basedir=
 
 case "$1" in
     --basedir)
-       basedir=$2
-       shift 2
-       ;;
+        basedir=$2
+        shift 2
+        ;;
     --help)
-       echo "Usage: py-compile [--basedir DIR] PY_FILES ..."
-       echo "Byte compile some python scripts.  This should be performed"
-       echo "after they have been moved to the final installation location"
-       exit 0
-       ;;
+        echo "Usage: py-compile [--basedir DIR] PY_FILES ..."
+        echo "Byte compile some python scripts.  This should be performed"
+        echo "after they have been moved to the final installation location"
+        exit 0
+        ;;
     --version)
-       echo "py-compile version 0.0"
-       exit 0
-       ;;
+        echo "py-compile version 0.0"
+        exit 0
+        ;;
 esac
 
 if [ $# = 0 ]; then
@@ -45,7 +45,7 @@ print 'Byte-compiling python modules...'
 for file in string.split(files):
     $trans
     if not os.path.exists(path) or not (len(path) >= 3 and path[-3:] == '.py'):
-       continue
+        continue
     print file,
     sys.stdout.flush()
     py_compile.compile(path)
@@ -60,9 +60,8 @@ print 'Byte-compiling python modules (optimised versions) ...'
 for file in string.split(files):
     $trans
     if not os.path.exists(path) or not (len(path) >= 3 and path[-3:] == '.py'):
-       continue
+        continue
     print file,
     sys.stdout.flush()
     py_compile.compile(path)
 print" 2>/dev/null || :
-
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]