util: mark filtertable as private constant
authorYuya Nishihara <yuya@tcha.org>
Sat, 24 Mar 2018 14:38:34 +0900
changeset 37116 7ccc9b8aca4c
parent 37115 49d6ba67c93f
child 37117 e7b517809ebc
util: mark filtertable as private constant Prepares for porting to utils.*.
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)