diff options
author | Joe Guo <joeg@catalyst.net.nz> | 2018-07-30 18:21:29 +1200 |
---|---|---|
committer | Douglas Bagnall <dbagnall@samba.org> | 2018-08-24 07:49:30 +0200 |
commit | 115f2a71b883567dcf324da5cd02cfc3c86431b4 (patch) | |
tree | 1e9c657b58e2186fd03e4f7ad182b945970967a0 /python/samba/kcc | |
parent | fd6b2086cbf03d8dd0b46160f345bf7cc5551aeb (diff) | |
download | samba-115f2a71b883567dcf324da5cd02cfc3c86431b4.tar.gz |
PEP8: fix E305: expected 2 blank lines after class or function definition, found 1
Signed-off-by: Joe Guo <joeg@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python/samba/kcc')
-rw-r--r-- | python/samba/kcc/debug.py | 1 | ||||
-rw-r--r-- | python/samba/kcc/kcc_utils.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/python/samba/kcc/debug.py b/python/samba/kcc/debug.py index 24c70d0de3a..8a69bde43a7 100644 --- a/python/samba/kcc/debug.py +++ b/python/samba/kcc/debug.py @@ -43,6 +43,7 @@ from samba.colour import GREY, WHITE def _color_debug(*args, **kwargs): DEBUG('%s%s%s' % (kwargs['color'], args[0], C_NORMAL), *args[1:]) + _globals = globals() for _color in ('DARK_RED', 'RED', 'DARK_GREEN', 'GREEN', 'YELLOW', 'DARK_YELLOW', 'DARK_BLUE', 'BLUE', 'PURPLE', 'MAGENTA', diff --git a/python/samba/kcc/kcc_utils.py b/python/samba/kcc/kcc_utils.py index b19cc109c51..a1dda6b5e02 100644 --- a/python/samba/kcc/kcc_utils.py +++ b/python/samba/kcc/kcc_utils.py @@ -41,6 +41,7 @@ class KCCError(Exception): class NCType(object): (unknown, schema, domain, config, application) = range(0, 5) + # map the NCType enum to strings for debugging nctype_lut = dict((v, k) for k, v in NCType.__dict__.items() if k[:2] != '__') |