Skip to content

Commit

Permalink
Testing: Remove extra parentheses when not needed; #6538
Browse files Browse the repository at this point in the history
See also:
- UP034
  • Loading branch information
rdimaio authored and bari12 committed Mar 21, 2024
1 parent c12826a commit 418783f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rucio/common/pcache.py
Expand Up @@ -258,7 +258,7 @@ def parse_args(self, args):
elif opt in ("-r", "--retry"):
self.max_retries = int(arg)
elif opt in ("-V", "--version"):
print((str(self.version)))
print(str(self.version))
sys.exit(0)
elif opt in ("-l", "--log"):
self.log_file = arg
Expand Down
2 changes: 1 addition & 1 deletion lib/rucio/common/utils.py
Expand Up @@ -1658,7 +1658,7 @@ def start():
while not graceful_stop.is_set():
starttime = time.time()
action()
time.sleep(interval - ((time.time() - starttime)))
time.sleep(interval - (time.time() - starttime))
t = threading.Thread(target=start)
return t

Expand Down
Expand Up @@ -83,7 +83,7 @@ def upgrade():
)

conn.execute(
sa.insert((get_rse_attr_association())).from_select(
sa.insert(get_rse_attr_association()).from_select(
["rse_id", "key", "value", "created_at", "updated_at"], select_stmt
)
)
Expand Down
2 changes: 1 addition & 1 deletion tools/github/workflow/set_branch_output_env.py
Expand Up @@ -21,7 +21,7 @@ def set_output(name: str, value: str) -> None:


def main():
set_output("branch", str((env.get("GITHUB_BASE_REF", None) if env.get("GITHUB_BASE_REF", None) else env.get("GITHUB_REF", "master"))))
set_output("branch", str(env.get("GITHUB_BASE_REF", None) if env.get("GITHUB_BASE_REF", None) else env.get("GITHUB_REF", "master")))


if __name__ == "__main__":
Expand Down

0 comments on commit 418783f

Please sign in to comment.