From 6f902ffbb3067350da3da01d923e4351d63f604a Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sun, 20 Mar 2016 19:56:22 +0100 Subject: py3++: iteritems --- examples/har_extractor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/har_extractor.py b/examples/har_extractor.py index 25661f7c..15e1ef30 100644 --- a/examples/har_extractor.py +++ b/examples/har_extractor.py @@ -2,6 +2,7 @@ This inline script utilizes harparser.HAR from https://github.com/JustusW/harparser to generate a HAR log object. """ +import six from harparser import HAR from datetime import datetime @@ -111,7 +112,7 @@ def response(context, flow): # HAR timings are integers in ms, so we have to re-encode the raw timings to # that format. - timings = dict([(k, int(1000 * v)) for k, v in timings_raw.iteritems()]) + timings = dict([(k, int(1000 * v)) for k, v in six.iteritems(timings_raw)]) # The full_time is the sum of all timings. # Timings set to -1 will be ignored as per spec. -- cgit v1.2.3