evolve: allow read() from the magic StringIO
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 27 Aug 2014 17:24:40 +0200
changeset 1080 41d2555141ea
parent 1079 e8f49b32e95b
child 1081 dddb8a70437c
evolve: allow read() from the magic StringIO
hgext/evolve.py
--- a/hgext/evolve.py	Wed Aug 27 17:12:01 2014 +0200
+++ b/hgext/evolve.py	Wed Aug 27 17:24:40 2014 +0200
@@ -2396,7 +2396,7 @@
     def length(self):
         return len(self.getvalue())
 
-    def read(self, size):
+    def read(self, size=None):
         obsexcprg(self.ui, self.tell(), unit="bytes", total=self.length)
         return StringIO.read(self, size)