Skip to content

Commit

Permalink
PY3: fix "TabError: inconsistent use of tabs and spaces"
Browse files Browse the repository at this point in the history
Signed-off-by: Noel Power <[email protected]>
Reviewed-by: Andrew Bartlett <[email protected]>
  • Loading branch information
noelpower authored and abartlet committed Sep 26, 2018
1 parent cddd54e commit e8fec94
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 19 deletions.
10 changes: 5 additions & 5 deletions auth/credentials/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -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'
)
2 changes: 1 addition & 1 deletion buildtools/wafsamba/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
20 changes: 10 additions & 10 deletions examples/winexe/wscript
Original file line number Diff line number Diff line change
Expand Up @@ -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")
4 changes: 2 additions & 2 deletions source4/auth/wscript_build
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion source4/heimdal/lib/wind/UnicodeData.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e8fec94

Please sign in to comment.