From f259b9478fb03e816af8abde29ae369342d40e4f Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Thu, 7 Jul 2016 01:21:15 -0700 Subject: disable harparser on py3 --- examples/har_extractor.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'examples/har_extractor.py') diff --git a/examples/har_extractor.py b/examples/har_extractor.py index d6b50c21..a5c05519 100644 --- a/examples/har_extractor.py +++ b/examples/har_extractor.py @@ -60,6 +60,12 @@ def start(context): suit your actual needs of HAR generation. As it will probably be necessary to cluster logs by IPs or reset them from time to time. """ + if sys.version_info >= (3, 0): + raise RuntimeError( + "har_extractor.py does not work on Python 3. " + "Please check out https://github.com/mitmproxy/mitmproxy/issues/1320 " + "if you want to help making this work again." + ) context.dump_file = None if len(sys.argv) > 1: context.dump_file = sys.argv[1] -- cgit v1.2.3