changeset 36745:6bacb2f663cb

py3: use bytes() instead of str() Differential Revision: https://phab.mercurial-scm.org/D2665
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 05 Mar 2018 01:08:40 +0530
parents 981f328d6d16
children 1f9bbd1d6b8a
files mercurial/revlog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/revlog.py	Mon Mar 05 01:05:54 2018 +0530
+++ b/mercurial/revlog.py	Mon Mar 05 01:08:40 2018 +0530
@@ -2468,7 +2468,7 @@
                 if populatecachedelta:
                     dp = self.deltaparent(rev)
                     if dp != nullrev:
-                        cachedelta = (dp, str(self._chunk(rev)))
+                        cachedelta = (dp, bytes(self._chunk(rev)))
 
                 if not cachedelta:
                     rawtext = self.revision(rev, raw=True)