def __init__(self, carriage_return=True):
        """
        Initialize a ``LineFramer`` object.

        :param carriage_return: If ``True`` (the default), accept
                                carriage return/newline pairs as line
                                separators.  Also causes carriage
                                returns to be emitted.  If ``False``,
                                carriage returns are not stripped from
                                input and not emitted on output.
        """

        super(LineFramer, self).__init__()

        self.carriage_return = carriage_return
        self.line_end = b'\r\n' if carriage_return else b'\n'
def __init__ ( self , carriage_return = True ) : super ( LineFramer , self ) . __init__ ( ) self . carriage_return = carriage_return self . line_end = b'\r\n' if carriage_return else b'\n'
Initialize a ``LineFramer`` object.

        :param carriage_return: If ``True`` (the default), accept
                                carriage return/newline pairs as line
                                separators.  Also causes carriage
                                returns to be emitted.  If ``False``,
                                carriage returns are not stripped from
                                input and not emitted on output.