From 9e5deb3526b16bd7a1e45eb9247f09376d819cac Mon Sep 17 00:00:00 2001 From: nemesisBR Date: Sun, 22 Mar 2020 23:08:05 +0000 Subject: [PATCH] Bug 1622682 : removed unused imports and variables. r=sylvestre Differential Revision: https://phabricator.services.mozilla.com/D67011 --HG-- extra : moz-landing-system : lando --- .flake8 | 1 - dom/security/test/csp/file_upgrade_insecure_wsh.py | 7 ++++--- dom/security/test/csp/file_websocket_self_wsh.py | 7 ++++--- dom/security/test/https-only/file_upgrade_insecure_wsh.py | 7 ++++--- .../file_main_bug803225_websocket_wsh.py | 7 ++++--- 5 files changed, 16 insertions(+), 13 deletions(-) diff --git a/.flake8 b/.flake8 index 24fa89ca42e4..b65c32a3bece 100644 --- a/.flake8 +++ b/.flake8 @@ -9,7 +9,6 @@ exclude = dom/browser-element, dom/canvas, dom/encoding, - dom/security, dom/websocket, gfx/tests, ipc/ipdl/ipdl, diff --git a/dom/security/test/csp/file_upgrade_insecure_wsh.py b/dom/security/test/csp/file_upgrade_insecure_wsh.py index 0ae161bff1ac..f00794e0bed3 100644 --- a/dom/security/test/csp/file_upgrade_insecure_wsh.py +++ b/dom/security/test/csp/file_upgrade_insecure_wsh.py @@ -1,7 +1,8 @@ -from mod_pywebsocket import msgutil + def web_socket_do_extra_handshake(request): - pass + pass + def web_socket_transfer_data(request): - pass + pass diff --git a/dom/security/test/csp/file_websocket_self_wsh.py b/dom/security/test/csp/file_websocket_self_wsh.py index 5fe508a9106f..f761e39af68b 100644 --- a/dom/security/test/csp/file_websocket_self_wsh.py +++ b/dom/security/test/csp/file_websocket_self_wsh.py @@ -1,7 +1,8 @@ -from mod_pywebsocket import msgutil + def web_socket_do_extra_handshake(request): - pass + pass + def web_socket_transfer_data(request): - pass + pass diff --git a/dom/security/test/https-only/file_upgrade_insecure_wsh.py b/dom/security/test/https-only/file_upgrade_insecure_wsh.py index 0ae161bff1ac..f00794e0bed3 100644 --- a/dom/security/test/https-only/file_upgrade_insecure_wsh.py +++ b/dom/security/test/https-only/file_upgrade_insecure_wsh.py @@ -1,7 +1,8 @@ -from mod_pywebsocket import msgutil + def web_socket_do_extra_handshake(request): - pass + pass + def web_socket_transfer_data(request): - pass + pass diff --git a/dom/security/test/mixedcontentblocker/file_main_bug803225_websocket_wsh.py b/dom/security/test/mixedcontentblocker/file_main_bug803225_websocket_wsh.py index 8c33c6b107b3..f00794e0bed3 100644 --- a/dom/security/test/mixedcontentblocker/file_main_bug803225_websocket_wsh.py +++ b/dom/security/test/mixedcontentblocker/file_main_bug803225_websocket_wsh.py @@ -1,7 +1,8 @@ -from mod_pywebsocket import msgutil + def web_socket_do_extra_handshake(request): - pass + pass + def web_socket_transfer_data(request): - resp = "" + pass