Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/a/n/Anomos-HEAD/Anomos/P2PConnection.py   Anomos(Download)
    def found_terminator(self):
        # Set the terminator equal to the number of bytes
        # the _reader is expecting next
        try:
            self.set_terminator(self.get_reader().next())
            # abuses the yield statement to a degree.
            if self.new_collector:
                self.set_terminator(self.get_reader().next())
            else:
                self.handle_close()