diff options
| author | Aldo Cortesi <aldo@corte.si> | 2016-10-17 18:21:23 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-10-17 18:21:23 +1300 |
| commit | 00071238d2e79ff91132b7e5a3bcc8019d9191ec (patch) | |
| tree | 507c346e8f8c605d428140274678fced2e6bbc16 /examples | |
| parent | 666c59cbfbcbd28062c201c3cb5d6cb928e90aee (diff) | |
| parent | c774a9fec93feedc37a450400a03b83f5f4cb4b9 (diff) | |
| download | mitmproxy-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.py | 2 | ||||
| -rw-r--r-- | examples/tls_passthrough.py | 3 |
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. """ |
