util: mark filtertable as private constant
Prepares for porting to utils.*.
--- 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)