changeset 37119:7ccc9b8aca4c

util: mark filtertable as private constant Prepares for porting to utils.*.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 24 Mar 2018 14:38:34 +0900
parents 49d6ba67c93f
children e7b517809ebc
files mercurial/util.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)