aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAldo Cortesi <aldo@corte.si>2016-10-17 18:21:23 +1300
committerGitHub <noreply@github.com>2016-10-17 18:21:23 +1300
commit00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch)
tree507c346e8f8c605d428140274678fced2e6bbc16 /examples
parent666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff)
parentc774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff)
downloadmitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.gz
mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.tar.bz2
mitmproxy-00071238d2e79ff91132b7e5a3bcc8019d9191ec.zip
Merge pull request #1617 from cortesi/object
python3
Diffstat (limited to 'examples')
-rw-r--r--examples/mitmproxywrapper.py2
-rw-r--r--examples/tls_passthrough.py3
2 files changed, 2 insertions, 3 deletions
diff --git a/examples/mitmproxywrapper.py b/examples/mitmproxywrapper.py
index 6841d05f..eade0fe2 100644
--- a/examples/mitmproxywrapper.py
+++ b/examples/mitmproxywrapper.py
@@ -15,7 +15,7 @@ import os
import sys
-class Wrapper(object):
+class Wrapper:
def __init__(self, port, extra_arguments=None):
self.port = port
self.extra_arguments = extra_arguments
diff --git a/examples/tls_passthrough.py b/examples/tls_passthrough.py
index 20e8f9be..445ea5c3 100644
--- a/examples/tls_passthrough.py
+++ b/examples/tls_passthrough.py
@@ -20,7 +20,6 @@ Example:
Authors: Maximilian Hils, Matthew Tuusberg
"""
-from __future__ import absolute_import, print_function, division
import collections
import random
@@ -38,7 +37,7 @@ class InterceptionResult(Enum):
skipped = None
-class _TlsStrategy(object):
+class _TlsStrategy:
"""
Abstract base class for interception strategies.
"""