changeset 52366 | c9baa3541b20 |
parent 51859 | f4733654f144 |
child 52576 | 08612516d436 |
--- a/mercurial/hgweb/common.py Wed Dec 04 20:53:31 2024 -0500 +++ b/mercurial/hgweb/common.py Wed Dec 04 20:54:35 2024 -0500 @@ -15,9 +15,6 @@ import stat from ..i18n import _ -from ..pycompat import ( - open, -) from .. import ( encoding, pycompat, @@ -222,7 +219,7 @@ path = os.path.join(directory, fpath) try: os.stat(path) - with open(path, b'rb') as fh: + with open(path, 'rb') as fh: data = fh.read() except TypeError: raise ErrorResponse(HTTP_SERVER_ERROR, b'illegal filename')