1
0
Fork 0

cleanup: delete redundant "r" open mode

Change-Id: I86ebb8c5a9dc3752e8a25f4b11b64c5be3a6429e
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/390375
Tested-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
This commit is contained in:
Jason R. Coombs 2023-10-20 23:32:02 +05:45 committed by LUCI
parent 0bcffd8656
commit 034950b9ee
7 changed files with 10 additions and 10 deletions

View file

@ -105,7 +105,7 @@ class GitRefs:
def _ReadPackedRefs(self):
path = os.path.join(self._gitdir, "packed-refs")
try:
fd = open(path, "r")
fd = open(path)
mtime = os.path.getmtime(path)
except IOError:
return