Mercurial > hgsubversion
comparison hgsubversion/svnwrap/common.py @ 1525:3476b7a945fb
svnwrap: work around getting a bytearray instead of a string in SimpleStringIO
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 30 Aug 2017 23:58:15 -0400 |
parents | c5de1adc3092 |
children |
comparison
equal
deleted
inserted
replaced
1524:c5de1adc3092 | 1525:3476b7a945fb |
---|---|
162 | 162 |
163 def write(self, s): | 163 def write(self, s): |
164 self._blocks.append(s) | 164 self._blocks.append(s) |
165 | 165 |
166 def getvalue(self): | 166 def getvalue(self): |
167 return ''.join(self._blocks) | 167 return ''.join(str(s) for s in self._blocks) |
168 | 168 |
169 def close(self): | 169 def close(self): |
170 if self._closing: | 170 if self._closing: |
171 del self._blocks | 171 del self._blocks |