[Updated] D12323: remotefilelog: remove pycompat.iteritems()
indygreg (Gregory Szorc)
phabricator at mercurial-scm.org
Tue Mar 8 10:57:42 UTC 2022
Closed by commit rHG0fe003495f72: remotefilelog: remove pycompat.iteritems() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D12323?vs=32534&id=32575
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D12323/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D12323
AFFECTED FILES
hgext/remotefilelog/shallowutil.py
CHANGE DETAILS
diff --git a/hgext/remotefilelog/shallowutil.py b/hgext/remotefilelog/shallowutil.py
--- a/hgext/remotefilelog/shallowutil.py
+++ b/hgext/remotefilelog/shallowutil.py
@@ -159,7 +159,7 @@
length limit is exceeded
"""
metabuf = b''
- for k, v in sorted(pycompat.iteritems((metadict or {}))):
+ for k, v in sorted((metadict or {}).items()):
if len(k) != 1:
raise error.ProgrammingError(b'packmeta: illegal key: %s' % k)
if len(v) > 0xFFFE:
@@ -187,7 +187,7 @@
and METAKEYFLAG will be dropped if its value is 0.
"""
newmeta = {}
- for k, v in pycompat.iteritems(metadict or {}):
+ for k, v in (metadict or {}).items():
expectedtype = _metaitemtypes.get(k, (bytes,))
if not isinstance(v, expectedtype):
raise error.ProgrammingError(b'packmeta: wrong type of key %s' % k)
To: indygreg, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20220308/f6caaeb2/attachment-0002.html>
More information about the Mercurial-patches
mailing list