Ticket #5875: patch.diff
File patch.diff, 519 bytes (added by , 17 years ago) |
---|
-
__init__.
old new 329 329 def next(self): 330 330 chunk = self._iterator.next() 331 331 if isinstance(chunk, unicode): 332 chunk = chunk.encode(self._charset) 332 try: 333 chunk = chunk.encode(self._charset) 334 except UnicodeEncodeError, e: 335 chunk = chunk.encode(self._charset, "replace") 333 336 return chunk 334 337 335 338 def close(self):