Mercurial > public > mercurial-scm > hg-stable
diff mercurial/obsutil.py @ 35915:c0a6733f7e7a
obsutil: work around filter() being a generator in Python 3
Differential Revision: https://phab.mercurial-scm.org/D1910
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 18 Jan 2018 13:04:16 -0500 |
parents | 22c42bfbe7ab |
children | 78f33dedadd0 |
line wrap: on
line diff
--- a/mercurial/obsutil.py Thu Jan 18 12:59:40 2018 -0500 +++ b/mercurial/obsutil.py Thu Jan 18 13:04:16 2018 -0500 @@ -421,10 +421,10 @@ # Check if other meta has changed changeextra = changectx.extra().items() - ctxmeta = filter(metanotblacklisted, changeextra) + ctxmeta = list(filter(metanotblacklisted, changeextra)) sourceextra = source.extra().items() - srcmeta = filter(metanotblacklisted, sourceextra) + srcmeta = list(filter(metanotblacklisted, sourceextra)) if ctxmeta != srcmeta: effects |= METACHANGED