1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00

PY3: fix "TabError: inconsistent use of tabs and spaces"

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Noel Power 2018-07-27 14:26:35 +01:00 committed by Andrew Bartlett
parent cddd54e865
commit e8fec94827
5 changed files with 19 additions and 19 deletions

View 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'
)

View 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)

View 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")

View 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',

View 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()