

def _read_and_discard_trailer(self):
    while True:
        line = self.fp.readline((_MAXLINE + 1))
        if (len(line) > _MAXLINE):
            raise LineTooLong('trailer line')
        if (not line):
            break
        if (line in (b'\r\n', b'\n', b'')):
            break

dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/http/client.py HTTPResponse._read_and_discard_trailer/original