Fix PEP8 warning E201/202/203 array/dict whitespace
authorTim Beale <timbeale@catalyst.net.nz>
Fri, 27 Jul 2018 01:36:18 +0000 (13:36 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 17 Aug 2018 00:58:26 +0000 (02:58 +0200)
Signed-off-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/netcmd/pso.py
source4/dsdb/tests/python/password_settings.py

index b12f00db0713af51a5a8741c64ea5ef161a5428c..32efea33d67c9a2684f56763e91ffff4b9b34d5b 100644 (file)
@@ -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',
index 8e04b8513a53333d38b5569ca0e69f932524b230..6da33f84ce730547fc9fb9af9af2354bcf1503ac 100644 (file)
@@ -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: