def eof(self):
        try:
            next_line = self.read_pkt_line()
        except HangupException:
            return True
        self.unread_pkt_line(next_line)
        return False
Test whether the protocol stream has reached EOF.
dataset/ETHPy150Open natestedman/Observatory/observatory/lib/dulwich/protocol.py/Protocol.eof