def _search_end(self):
        while 1:
            pos = self.fp.tell()
            line = self.fp.readline()
            if not line:
                return
            if line == '\037\014\n' or line == '\037':
                self.fp.seek(pos)
                return

## End: classes from the original module (for backward compatibility).
dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/BabylMailbox._search_end/original