From 16d32b2ce58afa4576f9fc806f72189382eb352c Mon Sep 17 00:00:00 2001 From: redfast00 Date: Wed, 8 Jun 2016 13:07:19 +0200 Subject: [PATCH] fix after cleanup of netlib.utils in mitmproxy.console.statusbar --- mitmproxy/console/statusbar.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mitmproxy/console/statusbar.py b/mitmproxy/console/statusbar.py index af8089b60..e576b5656 100644 --- a/mitmproxy/console/statusbar.py +++ b/mitmproxy/console/statusbar.py @@ -4,7 +4,7 @@ import os.path import urwid -import netlib.utils +import netlib.http.url from mitmproxy.console import common from mitmproxy.console import pathedit from mitmproxy.console import signals @@ -212,7 +212,7 @@ class StatusBar(urwid.WidgetWrap): if self.master.server.config.mode in ["reverse", "upstream"]: dst = self.master.server.config.upstream_server - r.append("[dest:%s]" % netlib.utils.unparse( + r.append("[dest:%s]" % netlib.http.url.unparse( dst.scheme, dst.address.host, dst.address.port