obsutil: work around filter() being a generator in Python 3
authorAugie Fackler <augie@google.com>
Thu, 18 Jan 2018 13:04:16 -0500
changeset 35875 c0a6733f7e7a
parent 35874 1bee7762fd46
child 35876 94621656be90
obsutil: work around filter() being a generator in Python 3 Differential Revision: https://phab.mercurial-scm.org/D1910
mercurial/obsutil.py
--- 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