From efcfc62b73ac484ed25727f476c7ad0bb25817d5 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 14 Feb 2016 14:43:48 +0100 Subject: autopep8 --- libmproxy/protocol/http2.py | 1 - 1 file changed, 1 deletion(-) (limited to 'libmproxy/protocol') diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index a65f7659..895fc9a8 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -234,7 +234,6 @@ class Http2Layer(Layer): stream.zombie = time.time() return - frame, _ = hyperframe.frame.Frame.parse_frame_header(raw_frame[:9]) if is_server: -- cgit v1.2.3 From 6746cf5f546bedd0486edd23d5253759920e1448 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Sun, 14 Feb 2016 14:45:27 +0100 Subject: autoflake --- libmproxy/protocol/http.py | 1 - libmproxy/protocol/http1.py | 3 --- libmproxy/protocol/http2.py | 2 -- libmproxy/protocol/tls.py | 2 +- 4 files changed, 1 insertion(+), 7 deletions(-) (limited to 'libmproxy/protocol') diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index 4a86f9da..13d7903b 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -242,7 +242,6 @@ class HttpLayer(Layer): self.send_response(response) except (NetlibException, H2Error): self.log(traceback.format_exc(), "debug") - pass def change_upstream_proxy_server(self, address): # Make set_upstream_proxy_server always available, diff --git a/libmproxy/protocol/http1.py b/libmproxy/protocol/http1.py index fc2cf07a..a4cd8801 100644 --- a/libmproxy/protocol/http1.py +++ b/libmproxy/protocol/http1.py @@ -1,12 +1,9 @@ from __future__ import (absolute_import, print_function, division) -import six -from netlib import tcp from netlib.http import http1 from .http import _HttpTransmissionLayer, HttpLayer -from .. import utils from ..models import HTTPRequest, HTTPResponse diff --git a/libmproxy/protocol/http2.py b/libmproxy/protocol/http2.py index 895fc9a8..c121637c 100644 --- a/libmproxy/protocol/http2.py +++ b/libmproxy/protocol/http2.py @@ -18,8 +18,6 @@ from .base import Layer from .http import _HttpTransmissionLayer, HttpLayer from .. import utils from ..models import HTTPRequest, HTTPResponse -from ..exceptions import HttpProtocolException -from ..exceptions import ProtocolException class SafeH2Connection(H2Connection): diff --git a/libmproxy/protocol/tls.py b/libmproxy/protocol/tls.py index 986eb964..378dd7d4 100644 --- a/libmproxy/protocol/tls.py +++ b/libmproxy/protocol/tls.py @@ -419,7 +419,7 @@ class TlsLayer(Layer): try: self.ctx.connect() self._establish_tls_with_server() - except Exception as e: + except Exception: try: self._establish_tls_with_client() except: -- cgit v1.2.3