aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManish Kumar <mkagenius@gmail.com>2016-08-01 15:37:26 +0530
committerManish Kumar <mkagenius@gmail.com>2016-08-01 15:37:26 +0530
commit87017055041a7b96688e69b2acaf5dcb8fb3ab64 (patch)
tree37986e36dbfaeff450f3401b53dc98709927c5b1
parent7ea9726e5d7f56a25bbf27da1b754feefb143409 (diff)
downloadmitmproxy-87017055041a7b96688e69b2acaf5dcb8fb3ab64.tar.gz
mitmproxy-87017055041a7b96688e69b2acaf5dcb8fb3ab64.tar.bz2
mitmproxy-87017055041a7b96688e69b2acaf5dcb8fb3ab64.zip
integer division for python 3 compatibility
-rw-r--r--mitmproxy/console/common.py2
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"))
a id='n130' href='#n130'>130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191