Commit f366a848 authored by Elouan Martinet's avatar Elouan Martinet
Browse files

Fix formatting using black

parent 198c7af59274
......@@ -156,9 +156,11 @@ def _gfremote(git_repo, git_remote_url, git_branch, hg_bookmark):
def gfclone(ui, git_fork_url, git_upstream_url, working_directory, **opts):
"""Prepare working directory to work with forge"""
try:
_gfclone(git_fork_url.decode("utf-8"),
git_upstream_url.decode("utf-8"),
working_directory.decode("utf-8"))
_gfclone(
git_fork_url.decode("utf-8"),
git_upstream_url.decode("utf-8"),
working_directory.decode("utf-8"),
)
except CalledProcessError:
pass
except ValueError as ex:
......@@ -182,8 +184,7 @@ def gfpush(ui, repo, bookmark, **opts):
os.chdir(repo.root)
git_repo = ui.config(b"gitrepo", b"gitrepo")
try:
_gfpush(git_repo.decode("utf-8"),
bookmark.decode("utf-8"))
_gfpush(git_repo.decode("utf-8"), bookmark.decode("utf-8"))
except CalledProcessError:
pass
except ValueError as ex:
......@@ -196,9 +197,11 @@ def gfremote(ui, repo, git_remote_url, git_branch, hg_bookmark, **opts):
os.chdir(repo.root)
git_repo = ui.config(b"gitrepo", b"gitrepo")
try:
_gfremote(git_repo.decode("utf-8"),
git_remote_url.decode("utf-8"),
git_branch.decode("utf-8"),
hg_bookmark.decode("utf-8"))
_gfremote(
git_repo.decode("utf-8"),
git_remote_url.decode("utf-8"),
git_branch.decode("utf-8"),
hg_bookmark.decode("utf-8"),
)
except CalledProcessError:
pass
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment