diff -r 49d6ba67c93f -r 7ccc9b8aca4c mercurial/util.py --- a/mercurial/util.py Sat Mar 24 17:04:43 2018 +0900 +++ b/mercurial/util.py Sat Mar 24 14:38:34 2018 +0900 @@ -1541,14 +1541,14 @@ except OSError: pass -filtertable = { +_filtertable = { 'tempfile:': tempfilter, 'pipe:': pipefilter, - } +} def filter(s, cmd): "filter a string through a command that transforms its input to its output" - for name, fn in filtertable.iteritems(): + for name, fn in _filtertable.iteritems(): if cmd.startswith(name): return fn(s, cmd[len(name):].lstrip()) return pipefilter(s, cmd)