diff options
author | Thomas Kriechbaumer <Kriechi@users.noreply.github.com> | 2016-08-01 21:12:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-01 21:12:33 +0200 |
commit | 8136a2f6f3681ad5c88581d551a64264c45d25c2 (patch) | |
tree | 37986e36dbfaeff450f3401b53dc98709927c5b1 | |
parent | 7ea9726e5d7f56a25bbf27da1b754feefb143409 (diff) | |
parent | 87017055041a7b96688e69b2acaf5dcb8fb3ab64 (diff) | |
download | mitmproxy-8136a2f6f3681ad5c88581d551a64264c45d25c2.tar.gz mitmproxy-8136a2f6f3681ad5c88581d551a64264c45d25c2.tar.bz2 mitmproxy-8136a2f6f3681ad5c88581d551a64264c45d25c2.zip |
Merge pull request #1457 from mkagenius/interger_division
integer division for python 3 compatibility
-rw-r--r-- | mitmproxy/console/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/console/common.py b/mitmproxy/console/common.py index 9fb8b5c9..2eb6a7d9 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")) |