def check_request_line(request):
    # 5.1 1. The three character UTF-8 string "GET".
    # 5.1 2. A UTF-8-encoded U+0020 SPACE character (0x20 byte).
    if request.method != 'GET':
        raise HandshakeException(request.method % 'Method is not GET: %r')

    if request.protocol != 'HTTP/1.1':
        raise HandshakeException('Version is not HTTP/1.1: %r' %
                                 request.protocol)
dataset/ETHPy150Open google/pywebsocket/mod_pywebsocket/handshake/_base.py/check_request_line/swapped operands of `%`