Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove semicolons in python code #4533

Merged
merged 1 commit into from
Oct 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/submit_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,4 +313,4 @@ def upload_files(upload_files_req):
# see tools/submit_api_test.py
#
def get_job_counts(req):
return do_http_post('', req.project, 'server_status.php?counts=1');
return do_http_post('', req.project, 'server_status.php?counts=1')
2 changes: 1 addition & 1 deletion py/Boinc/boincxml.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def read(self, failopen_ok=False):
self._get_elements()
except:
if not failopen_ok:
raise Exception("%s: Couldn't get elements from XML file");
raise Exception("%s: Couldn't get elements from XML file")
return self
def _get_elements(self):
pass
Expand Down
2 changes: 1 addition & 1 deletion py/Boinc/sched_messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def printf(self, kind, format, *args):
elif kind==DEBUG:
kind = "debug "
else:
kind = "*** internal error: invalid MessageKind ***";
kind = "*** internal error: invalid MessageKind ***"
sys.stderr.write("%s [%s] " % (time.strftime("%Y/%m/%d %H:%M:%S", time.localtime()), kind))
sys.stderr.write(format % args)
8 changes: 4 additions & 4 deletions py/Boinc/setup_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def dest(*dirs):
location = os.path.join(location, d )
return location

create_project_dirs(dest_dir);
create_project_dirs(dest_dir)

# copy html/ops files in all cases.
# The critical one is db_update.php,
Expand Down Expand Up @@ -555,13 +555,13 @@ def install_project(self):
if os.path.exists(self.dest()):
raise SystemExit('Project directory "%s" already exists; this would clobber it!'%self.dest())

verbose_echo(1, "Creating directories");
verbose_echo(1, "Creating directories")

create_project_dirs(self.project_dir);
create_project_dirs(self.project_dir)

if not self.web_only:
if not self.keys_exist():
verbose_echo(1, "Generating encryption keys");
verbose_echo(1, "Generating encryption keys")
self.create_keys()

# copy the user and administrative PHP files to the project dir,
Expand Down
8 changes: 4 additions & 4 deletions samples/vm_wrapper/VMwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class TASK:
final_cpu_time = 0.0
time_checkpointed = 0
# contribution of this task to overall fraction done
final_cpu_time = 0;
starting_cpu = 0;
ready = 0;
final_cpu_time = 0
starting_cpu = 0
ready = 0
exitCode = None

# how much CPU time was used by tasks before this in the job file
Expand Down Expand Up @@ -450,7 +450,7 @@ def read_checkpoint(filename):
cpu = 0

try:
f = open(filename, "r");
f = open(filename, "r")
except:
return [ntasks, cpu]

Expand Down
2 changes: 1 addition & 1 deletion tests/old/test_1sec.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from test_uc import *

if __name__ == '__main__':
test_msg("multiple projects with resource share");
test_msg("multiple projects with resource share")
# create two projects with the same host/user
host = Host()
user = UserUC()
Expand Down
2 changes: 1 addition & 1 deletion tests/old/test_uc.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,6 @@ def __init__(self,
)

if __name__ == '__main__':
test_msg("standard upper_case application");
test_msg("standard upper_case application")
ProjectUC()
run_check_all()
4 changes: 2 additions & 2 deletions tests/old/testbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ def install(self):
rmtree(self.dir())
os.mkdir(self.dir())

verbose_echo(1, "Setting up host '%s': creating account files" % self.name);
verbose_echo(1, "Setting up host '%s': creating account files" % self.name)
for (user,project) in map(None,self.users,self.projects):
filename = self.dir(account_file_name(project.config.config.master_url))
verbose_echo(2, "Setting up host '%s': writing %s" % (self.name, filename))
Expand Down Expand Up @@ -611,7 +611,7 @@ def install(self, project):
verbose_echo(2, "Linking "+newhandler)
os.symlink(handler, newhandler)

shutil.copy(self.result_template, project.dir());
shutil.copy(self.result_template, project.dir())
cmd = build_command_line("create_work",
config_dir = project.dir(),
appname = self.app.name,
Expand Down
2 changes: 1 addition & 1 deletion tools/submit_api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def make_batch_desc(batch_name):
[batch.project, batch.authenticator] = get_auth()
batch.app_name = "uppercase"
batch.batch_name = batch_name
batch.app_version_num = 710;
batch.app_version_num = 710
batch.jobs = []

for i in range(2):
Expand Down