From 10a9e3365fbfc0b0b789385a3a212ca01d332ab1 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Sun, 28 Jul 2013 18:00:49 +1200 Subject: Some refactoring of the console inteface. Reduce some state duplication, by removing currentflow variable. Fixes #141 --- libmproxy/console/common.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libmproxy/console/common.py') diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index d68aba3d..4f3ab090 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -18,6 +18,9 @@ import urwid.util from .. import utils, flow +VIEW_LIST = 0 +VIEW_FLOW = 1 + VIEW_FLOW_REQUEST = 0 VIEW_FLOW_RESPONSE = 1 -- cgit v1.2.3 From edb10e33aa84c45410bfbd1088b7714245c9f154 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Thu, 1 Aug 2013 11:08:00 +1200 Subject: Remove GPL notices left in source files after our change to the MIT license. Thanks to Roy Shamir for reporting this. --- libmproxy/console/common.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libmproxy/console/common.py') diff --git a/libmproxy/console/common.py b/libmproxy/console/common.py index 4f3ab090..187a755f 100644 --- a/libmproxy/console/common.py +++ b/libmproxy/console/common.py @@ -1,18 +1,3 @@ -# Copyright (C) 2012 Aldo Cortesi -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - import urwid import urwid.util from .. import utils, flow -- cgit v1.2.3