ui: rename _is_trusted to _trusted
is and do are pointless, underbar separators are style violations
--- 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)