Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / websocket / long-invalid-header_wsh.py
index 9201e90..860714b 100644 (file)
@@ -2,11 +2,12 @@ from mod_pywebsocket import handshake
 
 
 def web_socket_do_extra_handshake(request):
-    msg = "HTTP/1.1 101 WebSocket Protocol Handshake\r\n"
-    msg += ("p" * 1024) + "\r\n"
-    msg += "\r\n"
+    msg = 'HTTP/1.1 101 WebSocket Protocol Handshake\r\n'
+    msg += ('p' * 1024) + '\r\n'
+    msg += '\r\n'
     request.connection.write(msg)
-    raise handshake.AbortedByUserException("Abort the connection") # Prevents pywebsocket from sending its own handshake message.
+    # Prevents pywebsocket from sending its own handshake message.
+    raise handshake.AbortedByUserException('Abort the connection')
 
 
 def web_socket_transfer_data(request):