s4/dsdb: fix unnecessary backslash
authorRob van der Linde <rob@catalyst.net.nz>
Thu, 23 Feb 2023 23:57:57 +0000 (12:57 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 5 May 2023 04:58:30 +0000 (04:58 +0000)
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/tests/python/priv_attrs.py
source4/dsdb/tests/python/user_account_control.py
source4/scripting/bin/samba_upgradeprovision

index 4dfdfb9cbb885162a66e3d68818e82852ded65bc..0450cc561db22f9a69b95473388eebfa1906c3f9 100644 (file)
@@ -329,11 +329,11 @@ class PrivAttrsTests(samba.tests.TestCase):
                 except LdbError as e5:
                     (enum, estr) = e5.args
                     if "unpriv-add-error" in attrs[test_name]:
-                        self.assertGotLdbError(attrs[test_name]["unpriv-add-error"], \
-                                         enum)
+                        self.assertGotLdbError(attrs[test_name]["unpriv-add-error"],
+                                               enum)
                     else:
-                        self.assertGotLdbError(attrs[test_name]["unpriv-error"], \
-                                         enum)
+                        self.assertGotLdbError(attrs[test_name]["unpriv-error"],
+                                               enum)
             elif "only-2" in attrs[test_name] and \
                  attrs[test_name]["only-2"] != objectclass:
                 try:
index b54b33678dc75cf598f5a4c2c241e8c9af96e0df..ca99ce3fba1463449654b6926b270403cc07d443 100755 (executable)
@@ -96,7 +96,7 @@ class UserAccountControlTests(samba.tests.TestCase):
                                  UF_SERVER_TRUST_ACCOUNT]:
                 account_type_str = dsdb.user_account_control_flag_bit_to_string(account_type)
                 for objectclass in ["computer", "user"]:
-                    for name in [("oc_uac_lock$", "withdollar"), \
+                    for name in [("oc_uac_lock$", "withdollar"),
                         ("oc_uac_lock", "plain")]:
                         test_name = f"{account_type_str}_{objectclass}_{priv[1]}_{name[1]}"
                         cls.generate_dynamic_test("test_objectclass_uac_dollar_lock",
@@ -1282,7 +1282,7 @@ class UserAccountControlTests(samba.tests.TestCase):
 
         try:
             self.admin_samdb.add(msg_dict)
-            if (objectclass == "user" \
+            if (objectclass == "user"
                 and account_type != UF_NORMAL_ACCOUNT):
                 self.fail("Able to create {account_type_str} on {objectclass}")
         except LdbError as e:
index 1b1243cf66b621257522bc924f485cf41aa09bfa..03422af598e259c85ef4f6d0ab8e420f1bb99b29 100755 (executable)
@@ -311,9 +311,9 @@ def sanitychecks(samdb, names):
         print("No DC found. Your provision is most probably broken!")
         return False
     elif len(res) != 1:
-        print("Found %d domain controllers. For the moment " \
-              "upgradeprovision is not able to handle an upgrade on a " \
-              "domain with more than one DC. Please demote the other " \
+        print("Found %d domain controllers. For the moment "
+              "upgradeprovision is not able to handle an upgrade on a "
+              "domain with more than one DC. Please demote the other "
               "DC(s) before upgrading") % len(res)
         return False
     else: