Mercurial > public > mercurial-scm > hg
comparison mercurial/keepalive.py @ 48924:dea766fca7e1
keepalive: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12329
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:10:27 -0700 |
parents | 62baa61efe8f |
children | 642e31cb55f0 |
comparison
equal
deleted
inserted
replaced
48923:428177ad70b0 | 48924:dea766fca7e1 |
---|---|
191 self._cm.remove(h) | 191 self._cm.remove(h) |
192 h.close() | 192 h.close() |
193 | 193 |
194 def close_all(self): | 194 def close_all(self): |
195 """close all open connections""" | 195 """close all open connections""" |
196 for host, conns in pycompat.iteritems(self._cm.get_all()): | 196 for host, conns in self._cm.get_all().items(): |
197 for h in conns: | 197 for h in conns: |
198 self._cm.remove(h) | 198 self._cm.remove(h) |
199 h.close() | 199 h.close() |
200 | 200 |
201 def _request_closed(self, request, host, connection): | 201 def _request_closed(self, request, host, connection): |