diff hgext/fastannotate/context.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 649d3ac37a12
children 2d49482d0dd4
line wrap: on
line diff
--- a/hgext/fastannotate/context.py	Tue Nov 05 12:10:38 2019 -0500
+++ b/hgext/fastannotate/context.py	Tue Nov 05 08:42:42 2019 -0800
@@ -57,7 +57,7 @@
     # renamed filectx won't have a filelog yet, so set it
     # from the cache to save time
     for p in pl:
-        if not b'_filelog' in p.__dict__:
+        if not '_filelog' in p.__dict__:
             p._filelog = _getflog(f._repo, p.path())
 
     return pl