diff -r 47fac1692ede -r 9f70512ae2cf mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Sun Nov 10 07:30:14 2019 -0800 +++ b/mercurial/bundlerepo.py Fri Nov 08 11:19:20 2019 -0800 @@ -331,7 +331,7 @@ fdtemp, temp = self.vfs.mkstemp(prefix=b"hg-bundle-", suffix=suffix) self.tempfile = temp - with os.fdopen(fdtemp, r'wb') as fptemp: + with os.fdopen(fdtemp, 'wb') as fptemp: fptemp.write(header) while True: chunk = readfn(2 ** 18) @@ -393,7 +393,7 @@ # manifestlog implementation did not consume the manifests from the # changegroup (ex: it might be consuming trees from a separate bundle2 # part instead). So we need to manually consume it. - if r'filestart' not in self.__dict__: + if 'filestart' not in self.__dict__: self._consumemanifest() return self.filestart