# HG changeset patch # User Yuya Nishihara # Date 1521869914 -32400 # Node ID 7ccc9b8aca4c96e2e55cb2010313dd800fca4c61 # Parent 49d6ba67c93f9db615c917bf738e57b5d7990572 util: mark filtertable as private constant Prepares for porting to utils.*. 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)