diff --git a/pagure/lib/tasks.py b/pagure/lib/tasks.py index fa6d06a..b2904e5 100644 --- a/pagure/lib/tasks.py +++ b/pagure/lib/tasks.py @@ -1186,7 +1186,7 @@ def pull_request_ready_branch(self, session, namespace, name, user): pr.project.url_path, pr.id, ) - del (branches[pr.branch_from]) + del branches[pr.branch_from] return {"new_branch": branches, "branch_w_pr": branches_pr} diff --git a/pagure/ui/issues.py b/pagure/ui/issues.py index 673a8e6..56b98b3 100644 --- a/pagure/ui/issues.py +++ b/pagure/ui/issues.py @@ -534,12 +534,12 @@ def view_issues(repo, username=None, namespace=None): if "content" in extra_fields: extra_fields["search_content"] = extra_fields["content"] - del (extra_fields["content"]) + del extra_fields["content"] for field in fields: if field in extra_fields: fields[field] = extra_fields[field] - del (extra_fields[field]) + del extra_fields[field] custom_search.update(extra_fields) @@ -563,7 +563,7 @@ def view_issues(repo, username=None, namespace=None): ) status = fields["status"] - del (fields["status"]) + del fields["status"] if status.lower() in ["all"]: status = None diff --git a/pagure/ui/repo.py b/pagure/ui/repo.py index 14d749c..e3cb45c 100644 --- a/pagure/ui/repo.py +++ b/pagure/ui/repo.py @@ -2961,7 +2961,7 @@ def delete_report(repo, username=None, namespace=None): if report not in reports: flask.flash("Unknown report: %s" % report, "error") else: - del (reports[report]) + del reports[report] repo.reports = reports try: flask.g.session.add(repo)