From: Tim Beale Date: Fri, 27 Jul 2018 01:36:18 +0000 (+1200) Subject: Fix PEP8 warning E201/202/203 array/dict whitespace X-Git-Tag: tdb-1.3.17~2139 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96b726ea86071004d22980b017a03746f39fc25f;p=thirdparty%2Fsamba.git Fix PEP8 warning E201/202/203 array/dict whitespace Signed-off-by: Tim Beale Reviewed-by: Andrew Bartlett Reviewed-by: Douglas Bagnall --- diff --git a/python/samba/netcmd/pso.py b/python/samba/netcmd/pso.py index b12f00db071..32efea33d67 100644 --- a/python/samba/netcmd/pso.py +++ b/python/samba/netcmd/pso.py @@ -58,7 +58,7 @@ def show_pso_by_dn(outf, samdb, dn, show_applies_to=True): """Displays the password settings for a PSO specified by DN""" # map from the boolean LDB value to the CLI string the user sees - on_off_str = { "TRUE" : "on", "FALSE" : "off" } + on_off_str = {"TRUE": "on", "FALSE": "off"} pso_attrs = ['name', 'msDS-PasswordSettingsPrecedence', 'msDS-PasswordReversibleEncryptionEnabled', diff --git a/source4/dsdb/tests/python/password_settings.py b/source4/dsdb/tests/python/password_settings.py index 8e04b8513a5..6da33f84ce7 100644 --- a/source4/dsdb/tests/python/password_settings.py +++ b/source4/dsdb/tests/python/password_settings.py @@ -686,7 +686,7 @@ class PasswordSettingsTestCase(PasswordTestCase): self.assertTrue(attr in res[0]) # check replace/delete operations can't be performed by regular users - operations = [ FLAG_MOD_REPLACE, FLAG_MOD_DELETE ] + operations = [FLAG_MOD_REPLACE, FLAG_MOD_DELETE] for oper in operations: try: