Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
43420:93aeebc90ff9 | 43421:be384a2052aa |
---|---|
55 pl = [p for p in pl if p.path() == f.path()] | 55 pl = [p for p in pl if p.path() == f.path()] |
56 | 56 |
57 # renamed filectx won't have a filelog yet, so set it | 57 # renamed filectx won't have a filelog yet, so set it |
58 # from the cache to save time | 58 # from the cache to save time |
59 for p in pl: | 59 for p in pl: |
60 if not b'_filelog' in p.__dict__: | 60 if not '_filelog' in p.__dict__: |
61 p._filelog = _getflog(f._repo, p.path()) | 61 p._filelog = _getflog(f._repo, p.path()) |
62 | 62 |
63 return pl | 63 return pl |
64 | 64 |
65 | 65 |