Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
43420:93aeebc90ff9 | 43421:be384a2052aa |
---|---|
3197 completely. | 3197 completely. |
3198 ''' | 3198 ''' |
3199 # When using the same lock to commit and strip, the phasecache is left | 3199 # When using the same lock to commit and strip, the phasecache is left |
3200 # dirty after committing. Then when we strip, the repo is invalidated, | 3200 # dirty after committing. Then when we strip, the repo is invalidated, |
3201 # causing those changes to disappear. | 3201 # causing those changes to disappear. |
3202 if b'_phasecache' in vars(self): | 3202 if '_phasecache' in vars(self): |
3203 self._phasecache.write() | 3203 self._phasecache.write() |
3204 | 3204 |
3205 @unfilteredmethod | 3205 @unfilteredmethod |
3206 def destroyed(self): | 3206 def destroyed(self): |
3207 '''Inform the repository that nodes have been destroyed. | 3207 '''Inform the repository that nodes have been destroyed. |