ui: buffers -> _buffers
authorMatt Mackall <mpm@selenic.com>
Sun, 26 Apr 2009 16:50:44 -0500
changeset 8202 4746113269c7
parent 8201 7cf2b987acd3
child 8203 3377fa11af67
ui: buffers -> _buffers
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
@@ -14,7 +14,7 @@
 
 class ui(object):
     def __init__(self, src=None):
-        self.buffers = []
+        self._buffers = []
         self.quiet = self.verbose = self.debugflag = self.traceback = False
         self.interactive = self.report_untrusted = True
         self.overlay = config.config()
@@ -229,14 +229,14 @@
         return path or loc
 
     def pushbuffer(self):
-        self.buffers.append([])
+        self._buffers.append([])
 
     def popbuffer(self):
-        return "".join(self.buffers.pop())
+        return "".join(self._buffers.pop())
 
     def write(self, *args):
-        if self.buffers:
-            self.buffers[-1].extend([str(a) for a in args])
+        if self._buffers:
+            self._buffers[-1].extend([str(a) for a in args])
         else:
             for a in args:
                 sys.stdout.write(str(a))