ui: rename _is_trusted to _trusted
authorMatt Mackall <mpm@selenic.com>
Tue, 12 Jul 2011 16:36:22 -0500
changeset 14859 dccecfaebdd2
parent 14858 1a52f04ac51b
child 14860 67add0f24f83
ui: rename _is_trusted to _trusted is and do are pointless, underbar separators are style violations
mercurial/ui.py
--- a/mercurial/ui.py	Tue Jul 12 16:27:03 2011 -0500
+++ b/mercurial/ui.py	Tue Jul 12 16:36:22 2011 -0500
@@ -46,7 +46,7 @@
     def copy(self):
         return self.__class__(self)
 
-    def _is_trusted(self, fp, f):
+    def _trusted(self, fp, f):
         st = util.fstat(fp)
         if util.isowner(st):
             return True
@@ -75,7 +75,7 @@
             raise
 
         cfg = config.config()
-        trusted = sections or trust or self._is_trusted(fp, filename)
+        trusted = sections or trust or self._trusted(fp, filename)
 
         try:
             cfg.read(filename, fp, sections=sections, remap=remap)