Mercurial > hg
changeset 8202:4746113269c7
ui: buffers -> _buffers
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Apr 2009 16:50:44 -0500 |
parents | 7cf2b987acd3 |
children | 3377fa11af67 |
files | mercurial/ui.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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))