Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 5450:c728424d44c6
revlog: fix caching of buffer objects
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 11 Oct 2007 00:46:53 -0500 |
parents | 17a4b20eda7b |
children | f2ca8d2c988f |
line wrap: on
line diff
--- a/mercurial/util.py Thu Oct 11 00:46:52 2007 -0500 +++ b/mercurial/util.py Thu Oct 11 00:46:53 2007 -0500 @@ -1421,7 +1421,7 @@ self.iter = False self.buf = collector.getvalue() if len(self.buf) == l: - s, self.buf = self.buf, '' + s, self.buf = str(self.buf), '' else: s, self.buf = self.buf[:l], buffer(self.buf, l) return s