ui: traceback -> _traceback
authorMatt Mackall <mpm@selenic.com>
Sun, 26 Apr 2009 16:50:44 -0500
changeset 8205 00736cd2702a
parent 8204 797586be575d
child 8206 cce63ef1045b
ui: traceback -> _traceback
mercurial/ui.py
--- a/mercurial/ui.py	Sun Apr 26 16:50:44 2009 -0500
+++ b/mercurial/ui.py	Sun Apr 26 16:50:44 2009 -0500
@@ -15,7 +15,7 @@
 class ui(object):
     def __init__(self, src=None):
         self._buffers = []
-        self.quiet = self.verbose = self.debugflag = self.traceback = False
+        self.quiet = self.verbose = self.debugflag = self._traceback = False
         self.interactive = self._reportuntrusted = True
         self._ocfg = config.config() # overlay
         self._tcfg = config.config() # trusted
@@ -113,7 +113,7 @@
             self.quiet = self.verbose = False
         self._reportuntrusted = self.configbool("ui", "report_untrusted", True)
         self.interactive = self.configbool("ui", "interactive", self.isatty())
-        self.traceback = self.configbool('ui', 'traceback', False)
+        self._traceback = self.configbool('ui', 'traceback', False)
 
         # update trust information
         for user in self.configlist('trusted', 'users'):
@@ -338,9 +338,9 @@
         '''print exception traceback if traceback printing enabled.
         only to call in exception handler. returns true if traceback
         printed.'''
-        if self.traceback:
+        if self._traceback:
             traceback.print_exc()
-        return self.traceback
+        return self._traceback
 
     def geteditor(self):
         '''return editor to use'''