From e56793f01e3faa78c7a449d68772bee89795e92a Mon Sep 17 00:00:00 2001 From: Yuangxuan Wang Date: Mon, 20 Jun 2011 16:17:59 +0800 Subject: [PATCH] Fix urwid version parsing error when it's something like 0.9.10-pre --- libmproxy/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/console.py b/libmproxy/console.py index aa7639301..4c4c9b5e9 100644 --- a/libmproxy/console.py +++ b/libmproxy/console.py @@ -114,7 +114,7 @@ def format_flow(f, focus, extended=False, padding=2): def int_version(v): SIG = 3 - v = urwid.__version__.split(".") + v = urwid.__version__.split("-")[0].split(".") x = 0 for i in range(min(SIG, len(v))): x += int(v[i]) * 10**(SIG-i)