diff hgext/journal.py @ 36696:bcfc4e3b6548

py3: use bytes() instead of str() Differential Revision: https://phab.mercurial-scm.org/D2617
author Pulkit Goyal <7895pulkit@gmail.com>
date Fri, 02 Mar 2018 07:16:33 +0530
parents d79d68bb9f7c
children e77cee5de1c7
line wrap: on
line diff
--- a/hgext/journal.py	Fri Mar 02 07:15:54 2018 +0530
+++ b/hgext/journal.py	Fri Mar 02 07:16:33 2018 +0530
@@ -363,7 +363,7 @@
                     # empty file, write version first
                     f.write(str(storageversion) + '\0')
                 f.seek(0, os.SEEK_END)
-                f.write(str(entry) + '\0')
+                f.write(bytes(entry) + '\0')
 
     def filtered(self, namespace=None, name=None):
         """Yield all journal entries with the given namespace or name