PY3: fix "TabError: inconsistent use of tabs and spaces"
authorNoel Power <noel.power@suse.com>
Fri, 27 Jul 2018 13:26:35 +0000 (14:26 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 26 Sep 2018 23:54:27 +0000 (01:54 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
auth/credentials/wscript_build
buildtools/wafsamba/wscript
examples/winexe/wscript
source4/auth/wscript_build
source4/heimdal/lib/wind/UnicodeData.py

index 73e8e67..aaef541 100644 (file)
@@ -28,8 +28,8 @@ for env in bld.gen_python_environments():
         pytalloc_util = bld.pyembed_libname('pytalloc-util')
         pyparam_util = bld.pyembed_libname('pyparam_util')
 
-       bld.SAMBA_PYTHON('pycredentials',
-               source='pycredentials.c',
-               public_deps='samba-credentials cmdline-credentials %s %s CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util),
-               realname='samba/credentials.so'
-               )
+        bld.SAMBA_PYTHON('pycredentials',
+            source='pycredentials.c',
+            public_deps='samba-credentials cmdline-credentials %s %s CREDENTIALS_KRB5 CREDENTIALS_SECRETS' % (pytalloc_util, pyparam_util),
+            realname='samba/credentials.so'
+        )
index 0b73c85..5c4b037 100644 (file)
@@ -560,7 +560,7 @@ struct foo bar = { .y = 'X', .x = 1 };
     # Extra sanity check.
     if conf.CONFIG_SET("HAVE_BIG_ENDIAN") == conf.CONFIG_SET("HAVE_LITTLE_ENDIAN"):
         Logs.error("Failed endian determination.  The PDP-11 is back?")
-       sys.exit(1)
+        sys.exit(1)
     else:
         if conf.CONFIG_SET("HAVE_BIG_ENDIAN"):
             conf.DEFINE('WORDS_BIGENDIAN', 1)
index 8e42f01..6b311b1 100644 (file)
@@ -9,23 +9,23 @@ def configure(conf):
 
     for a in AR32:
         for t in TC:
-           if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN32'):
-               found = True
-               break
-       if found:
+            if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN32'):
+                found = True
+                break
+        if found:
             conf.DEFINE('HAVE_WINEXE_CC_WIN32', 1);
-           break
+            break
 
     found = False
 
     for a in AR64:
         for t in TC:
-           if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN64'):
-               found = True
-               break
-       if found:
+            if conf.find_program(a + '-' + t + '-gcc', var='WINEXE_CC_WIN64'):
+                found = True
+                break
+        if found:
             conf.DEFINE('HAVE_WINEXE_CC_WIN64', 1);
-           break
+            break
 
     conf.DEFINE("WINEXE_LDFLAGS",
                 "-s -Wall -Wl,-Bstatic -Wl,-Bdynamic -luserenv")
index d3452d2..7d67c3d 100644 (file)
@@ -54,8 +54,8 @@ for env in bld.gen_python_environments():
        pyparam_util = bld.pyembed_libname('pyparam_util')
        pyldb_util = bld.pyembed_libname('pyldb-util')
        pycredentials = 'pycredentials'
-        if bld.env['IS_EXTRA_PYTHON']:
-            pycredentials = 'extra-' + pycredentials
+       if bld.env['IS_EXTRA_PYTHON']:
+               pycredentials = 'extra-' + pycredentials
        bld.SAMBA_PYTHON('pyauth',
                source='pyauth.c',
                public_deps='auth_system_session',
index dd6dfa7..8ce3bca 100644 (file)
@@ -50,7 +50,7 @@ def read(filename):
             continue
         f = l.split(';')
         key = int(f[0], 0x10)
-       if key in ret:
+        if key in ret:
             raise Exception('Duplicate key in UnicodeData')
         ret[key] = f[1:]
     ud.close()