From 034950b9eebacd6598ea518a0b254845bc806ab6 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 20 Oct 2023 23:32:02 +0545 Subject: cleanup: delete redundant "r" open mode Change-Id: I86ebb8c5a9dc3752e8a25f4b11b64c5be3a6429e Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390375 Tested-by: Mike Frysinger Commit-Queue: Mike Frysinger Reviewed-by: Aravind Vasudevan --- project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'project.py') diff --git a/project.py b/project.py index 93d9dcba..5c9f31cf 100644 --- a/project.py +++ b/project.py @@ -3227,7 +3227,7 @@ class Project: # Rewrite the internal state files to use relative paths between the # checkouts & worktrees. dotgit = os.path.join(self.worktree, ".git") - with open(dotgit, "r") as fp: + with open(dotgit) as fp: # Figure out the checkout->worktree path. setting = fp.read() assert setting.startswith("gitdir:") -- cgit v1.2.3-54-g00ecf