def get_connection(self, **kwargs):
if self.is_rtscts():<EOL><INDENT>return RTSCTSConnection(self, **kwargs)<EOL><DEDENT>if self.is_dsrdtr():<EOL><INDENT>return DSRDTRConnection(self, **kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise RuntimeError('<STR_LIT>' % (<EOL>self.protocol))<EOL><DEDENT>
Return a serial connection implementation suitable for the specified
        protocol. Raises ``RuntimeError`` if there is no implementation for
        the given protocol.

        .. warn::

            This may be a little bit confusing since there is no effective
            connection but an implementation of a connection pattern.