From e530544546b2a4e5f00e8d9458bf1b895573ec41 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 18 May 2022 08:01:38 +0800 Subject: reformat according to 'black' configuration file. --- git/objects/submodule/util.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'git/objects/submodule/util.py') diff --git a/git/objects/submodule/util.py b/git/objects/submodule/util.py index 456ae34b..56ce1489 100644 --- a/git/objects/submodule/util.py +++ b/git/objects/submodule/util.py @@ -47,9 +47,7 @@ def mkhead(repo: "Repo", path: PathLike) -> "Head": return git.Head(repo, git.Head.to_full_path(path)) -def find_first_remote_branch( - remotes: Sequence["Remote"], branch_name: str -) -> "RemoteReference": +def find_first_remote_branch(remotes: Sequence["Remote"], branch_name: str) -> "RemoteReference": """Find the remote branch matching the name of the given branch or raise InvalidGitRepositoryError""" for remote in remotes: try: @@ -58,9 +56,7 @@ def find_first_remote_branch( continue # END exception handling # END for remote - raise InvalidGitRepositoryError( - "Didn't find remote branch '%r' in any of the given remotes" % branch_name - ) + raise InvalidGitRepositoryError("Didn't find remote branch '%r' in any of the given remotes" % branch_name) # } END utilities -- cgit v1.2.1