Mercurial > public > mercurial-scm > hg-stable
diff contrib/perf.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 | 0c4efb6eb4fa |
children | daade078f1f0 |
line wrap: on
line diff
--- a/contrib/perf.py Tue Nov 05 12:10:38 2019 -0500 +++ b/contrib/perf.py Tue Nov 05 08:42:42 2019 -0800 @@ -691,8 +691,8 @@ def clearcache(): # _tagscache has been filteredpropertycache since 2.5 (or # 98c867ac1330), and delattr() can't work in such case - if b'_tagscache' in vars(repo): - del repo.__dict__[b'_tagscache'] + if '_tagscache' in vars(repo): + del repo.__dict__['_tagscache'] return clearcache