Commits

Michał Górny committed d438199

BashServer: use bytes for pipe I/O.

Comments (0)

Files changed (1)

gentoopm/bash/bashserver.py

 
 	def _read1(self):
 		f = self._bashproc.stdout
-		buf = ' '
-		while buf[-1] != '\0':
+		buf = b' '
+		while not buf.endswith(b'\0'):
 			buf += f.read(1)
 		return buf[1:-1].decode('utf-8')