Mercurial > code > home > repos > homeauto
diff lib/patchsource.py @ 447:3d51d4b63497
patchsource py3 support. might break py2
Ignore-this: e7559afeb74ffa53bf2085f78455014
author | drewp@bigasterisk.com |
---|---|
date | Thu, 18 Apr 2019 21:58:19 -0700 |
parents | 124c921ad52d |
children | b5abd4fc65a4 |
line wrap: on
line diff
--- a/lib/patchsource.py Thu Apr 18 16:55:52 2019 -0700 +++ b/lib/patchsource.py Thu Apr 18 21:58:19 2019 -0700 @@ -29,7 +29,7 @@ # start with patches self._fullGraphReceived = False self._eventSource = EventSource(url.toPython().encode('utf8')) - self._eventSource.protocol.delimiter = '\n' + self._eventSource.protocol.delimiter = b'\n' self._eventSource.addEventListener('fullGraph', self._onFullGraph) self._eventSource.addEventListener('patch', self._onPatch)