def read(self):
        try:
            line = ""
            while line not in '\x00':
                # TODO this is fairly inefficient
                line += self.socket.recv(1)
        except (OSError, socket.error, IOError) as e:
            raise DataSourceError("Unable to read from socket connection at  "
                    "%s:%s: %s" % (self.host,self.port, e))
        if not line:
            raise DataSourceError("Unable to read from socket connection at  "
                    "%s:%s" % (self.host,self.port))
        return line
dataset/ETHPy150Open openxc/openxc-python/openxc/sources/socket.py/SocketDataSource.read/swapped operands of `not in`