##// END OF EJS Templates
ui: rename _is_trusted to _trusted...
Matt Mackall -
r14859:dccecfae default
parent child Browse files
Show More
@@ -46,7 +46,7 b' class ui(object):'
46 def copy(self):
46 def copy(self):
47 return self.__class__(self)
47 return self.__class__(self)
48
48
49 def _is_trusted(self, fp, f):
49 def _trusted(self, fp, f):
50 st = util.fstat(fp)
50 st = util.fstat(fp)
51 if util.isowner(st):
51 if util.isowner(st):
52 return True
52 return True
@@ -75,7 +75,7 b' class ui(object):'
75 raise
75 raise
76
76
77 cfg = config.config()
77 cfg = config.config()
78 trusted = sections or trust or self._is_trusted(fp, filename)
78 trusted = sections or trust or self._trusted(fp, filename)
79
79
80 try:
80 try:
81 cfg.read(filename, fp, sections=sections, remap=remap)
81 cfg.read(filename, fp, sections=sections, remap=remap)
General Comments 0
You need to be logged in to leave comments. Login now