changeset 14859:dccecfaebdd2

ui: rename _is_trusted to _trusted is and do are pointless, underbar separators are style violations
author Matt Mackall <mpm@selenic.com>
date Tue, 12 Jul 2011 16:36:22 -0500
parents 1a52f04ac51b
children 67add0f24f83
files mercurial/ui.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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)