[Updated] D12568: git: un-byteify the `mode` argument for the builtin `open()`
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Tue Apr 19 09:19:32 UTC 2022
Closed by commit rHGd35c18ceaf0a: git: un-byteify the `mode` argument for the builtin `open()` (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12568?vs=33194&id=33211
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12568/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12568
AFFECTED FILES
hgext/git/dirstate.py
CHANGE DETAILS
diff --git a/hgext/git/dirstate.py b/hgext/git/dirstate.py
--- a/hgext/git/dirstate.py
+++ b/hgext/git/dirstate.py
@@ -33,7 +33,7 @@
return orig(filepath, warn, sourceinfo=False)
result = []
warnings = []
- with open(filepath, b'rb') as fp:
+ with open(filepath, 'rb') as fp:
for l in fp:
l = l.strip()
if not l or l.startswith(b'#'):
To: mharbison72, durin42, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220419/65572ed0/attachment-0002.html>
More information about the Mercurial-patches
mailing list