From 87017055041a7b96688e69b2acaf5dcb8fb3ab64 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Mon, 1 Aug 2016 15:37:26 +0530 Subject: [PATCH] integer division for python 3 compatibility --- mitmproxy/console/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/console/common.py b/mitmproxy/console/common.py index 9fb8b5c92..2eb6a7d93 100644 --- a/mitmproxy/console/common.py +++ b/mitmproxy/console/common.py @@ -379,7 +379,7 @@ def raw_format_flow(f, focus, extended): 4: "code_400", 5: "code_500", } - ccol = codes.get(f["resp_code"] / 100, "code_other") + ccol = codes.get(f["resp_code"] // 100, "code_other") resp.append(fcol(SYMBOL_RETURN, ccol)) if f["resp_is_replay"]: resp.append(fcol(SYMBOL_REPLAY, "replay"))