branch | stable |
changeset 46570 | 7a29d9002250 |
parent 46178 | e3d595b7fbaa |
child 47857 | 2b76255a4f74 |
--- a/mercurial/pycompat.py Fri Feb 26 15:34:22 2021 +0530 +++ b/mercurial/pycompat.py Mon Mar 08 12:28:53 2021 -0500 @@ -510,7 +510,7 @@ # This wrapper file are always open in byte mode. def unnamedtempfile(mode=None, *args, **kwargs): if mode is None: - mode = b'w+b' + mode = 'w+b' else: mode = sysstr(mode) assert 'b' in mode