s3:script: Remove semicolons
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 16 Aug 2023 23:20:40 +0000 (11:20 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 13 Oct 2023 03:50:31 +0000 (03:50 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/script/tests/getset_quota.py
source3/script/tests/test_smbcquota.py
source4/torture/drs/python/getncchanges.py

index 4daae3d7b2322412f1a5618fea9e057cd5a50ab5..39d70242a46f0027d4bdca5e2585b93ecfc8fd5d 100755 (executable)
@@ -77,7 +77,7 @@ def load_quotas(input_file):
 def set_quotas(quota_list, output_file):
     filecontents = open(output_file,"w+")
     if filecontents == None:
-        return False;
+        return False
     lines = ""
     for quota in quota_list:
         next_line = quota_to_db_str(quota)
@@ -97,7 +97,7 @@ def get_quotas(uid, quota_list):
 def main():
     logging.basicConfig(format='%(asctime)s %(message)s', level=logging.DEBUG)
     logging.debug("system args passed are %s\n"% str(sys.argv))
-    quota_file_dir = os.path.dirname(sys.argv[0]);
+    quota_file_dir = os.path.dirname(sys.argv[0])
     quota_file_db = os.path.join(quota_file_dir,"quotas.db")
     logging.debug("quota db is located %s\n", quota_file_db)
     quota_list = load_quotas(quota_file_db)
@@ -120,7 +120,7 @@ def main():
             logging.debug("no result for uid %s"%uid)
         else:
             result = quota_to_str(quota)
-            logging.debug("got result for uid %s\n"%uid);
+            logging.debug("got result for uid %s\n"%uid)
         if result is None:
             result = "0 0 0 0 0 0 0"
         logging.debug("for uid %s returning quotas %s\n"%(uid,result))
index 3f67bd3c96099d22ecc13abb8bf5a0aded3ec1a6..02229d72765faa5bd0b44c78f67823e4903ea877 100755 (executable)
@@ -153,7 +153,7 @@ class listtest(test_base):
     def run(self, protocol):
         init_quota_db(self.env.users, self.env.quota_db)
         quotas = load_quotas(self.env.quota_db)
-        args = [self.env.smbcquotas];
+        args = [self.env.smbcquotas]
         remaining_args = ['-U' + self.env.username + "%" + self.env.password, '-L', '//' + self.env.server + '/quotadir']
         if protocol == 'smb2':
             args.append('-m smb2')
index 580d8cc66f33ace390e8dbe2f9ea03baa981dafc..a994c6f97bc935baff1abc4cfef7548ffd049eb9 100644 (file)
@@ -1329,9 +1329,9 @@ class DrsReplicaSyncIntegrityTestCase(drs_base.DrsBaseTestCase):
 
         # Check some predicates about USN ordering that the below tests will rely on
         if ou_change and nc_change:
-            self.assertGreater(ou_usn, base_usn);
+            self.assertGreater(ou_usn, base_usn)
         elif not ou_change and nc_change:
-            self.assertGreater(base_usn, ou_usn);
+            self.assertGreater(base_usn, ou_usn)
 
         ctr6 = self.repl_get_next()