comparison mercurial/localrepo.py @ 48935: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 1414b65303d5
children 642e31cb55f0
comparison
equal deleted inserted replaced
48934:06de08b36c82 48935:2cce2fa5bcf7
2137 '''return the tags associated with a node''' 2137 '''return the tags associated with a node'''
2138 if not self._tagscache.nodetagscache: 2138 if not self._tagscache.nodetagscache:
2139 nodetagscache = {} 2139 nodetagscache = {}
2140 for t, n in self._tagscache.tags.items(): 2140 for t, n in self._tagscache.tags.items():
2141 nodetagscache.setdefault(n, []).append(t) 2141 nodetagscache.setdefault(n, []).append(t)
2142 for tags in pycompat.itervalues(nodetagscache): 2142 for tags in nodetagscache.values():
2143 tags.sort() 2143 tags.sort()
2144 self._tagscache.nodetagscache = nodetagscache 2144 self._tagscache.nodetagscache = nodetagscache
2145 return self._tagscache.nodetagscache.get(node, []) 2145 return self._tagscache.nodetagscache.get(node, [])
2146 2146
2147 def nodebookmarks(self, node): 2147 def nodebookmarks(self, node):