# HG changeset patch # User Matt Harbison # Date 1650306058 14400 # Node ID 020328be00cbdd861911fedd75ff41b6a62eac63 # Parent 20d151e434290560812de96b2a7ce9908d3fac2f git: un-byteify the `mode` argument for the builtin `open()` I guess this was assuming `pycompat.open` was imported, but it's not here or elsewhere in the git extension. Differential Revision: https://phab.mercurial-scm.org/D12568 diff -r 20d151e43429 -r 020328be00cb hgext/git/dirstate.py --- a/hgext/git/dirstate.py Mon Apr 18 11:21:09 2022 -0400 +++ b/hgext/git/dirstate.py Mon Apr 18 14:20:58 2022 -0400 @@ -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'#'):