diff mercurial/localrepo.py @ 43421:be384a2052aa stable

py3: don't use bytes with vars() or __dict__ Inspired by D7227. These were all the remaining instances I could find. Differential Revision: https://phab.mercurial-scm.org/D7230
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 05 Nov 2019 08:42:42 -0800
parents a0916e8819f6
children bf87f5ff2ebf 9f70512ae2cf
line wrap: on
line diff
--- a/mercurial/localrepo.py	Tue Nov 05 12:10:38 2019 -0500
+++ b/mercurial/localrepo.py	Tue Nov 05 08:42:42 2019 -0800
@@ -3199,7 +3199,7 @@
         # When using the same lock to commit and strip, the phasecache is left
         # dirty after committing. Then when we strip, the repo is invalidated,
         # causing those changes to disappear.
-        if b'_phasecache' in vars(self):
+        if '_phasecache' in vars(self):
             self._phasecache.write()
 
     @unfilteredmethod