Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/ui.py @ 49026:2cce2fa5bcf7
py3: replace pycompat.itervalues(x) with x.values()
pycompat.itervalues(x) just calls x.values(). So this is equivalent.
The rewrite was perfomed via an automated search and replace.
Differential Revision: https://phab.mercurial-scm.org/D12341
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Tue, 01 Mar 2022 20:52:32 -0800 |
parents | 78f1de3f4be7 |
children | 642e31cb55f0 |
comparison
equal
deleted
inserted
replaced
49025:06de08b36c82 | 49026:2cce2fa5bcf7 |
---|---|
2115 | 2115 |
2116 **opts currently has no defined meanings. | 2116 **opts currently has no defined meanings. |
2117 """ | 2117 """ |
2118 if not self._loggers: | 2118 if not self._loggers: |
2119 return | 2119 return |
2120 activeloggers = [ | 2120 activeloggers = [l for l in self._loggers.values() if l.tracked(event)] |
2121 l for l in pycompat.itervalues(self._loggers) if l.tracked(event) | |
2122 ] | |
2123 if not activeloggers: | 2121 if not activeloggers: |
2124 return | 2122 return |
2125 msg = msgfmt % msgargs | 2123 msg = msgfmt % msgargs |
2126 opts = pycompat.byteskwargs(opts) | 2124 opts = pycompat.byteskwargs(opts) |
2127 # guard against recursion from e.g. ui.debug() | 2125 # guard against recursion from e.g. ui.debug() |