Mercurial > hg-stable
changeset 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 | 1bee7762fd46 |
children | 94621656be90 |
files | mercurial/obsutil.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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