From: Joseph Sutton Date: Wed, 16 Aug 2023 23:20:40 +0000 (+1200) Subject: s3:script: Remove semicolons X-Git-Tag: tevent-0.16.0~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39a4d27a83cb59474fc349ae3e68c10374c296d6;p=thirdparty%2Fsamba.git s3:script: Remove semicolons Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- diff --git a/source3/script/tests/getset_quota.py b/source3/script/tests/getset_quota.py index 4daae3d7b23..39d70242a46 100755 --- a/source3/script/tests/getset_quota.py +++ b/source3/script/tests/getset_quota.py @@ -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)) diff --git a/source3/script/tests/test_smbcquota.py b/source3/script/tests/test_smbcquota.py index 3f67bd3c960..02229d72765 100755 --- a/source3/script/tests/test_smbcquota.py +++ b/source3/script/tests/test_smbcquota.py @@ -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') diff --git a/source4/torture/drs/python/getncchanges.py b/source4/torture/drs/python/getncchanges.py index 580d8cc66f3..a994c6f97bc 100644 --- a/source4/torture/drs/python/getncchanges.py +++ b/source4/torture/drs/python/getncchanges.py @@ -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()