Submitter | phabricator |
---|---|
Date | March 2, 2018, 8:26 p.m. |
Message ID | <8cb09e2a013531c168e223afa5e6d436@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/28720/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -729,6 +729,9 @@ def read(self, res, size=-1): if not self.reads: return + # Python 3 can return None from reads at EOF instead of empty strings. + if res is None: + res = '' self.fh.write('%s> read(%d) -> %d' % (self.name, size, len(res))) self._writedata(res)