From d630c04ab1ab35e2ec6eeeaba9bdcb9f8e730e78 Mon Sep 17 00:00:00 2001 From: Florent Xicluna Date: Fri, 2 Apr 2010 07:24:52 +0000 Subject: #7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports. --- Lib/idlelib/MultiCall.py | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) (limited to 'Lib/idlelib/MultiCall.py') diff --git a/Lib/idlelib/MultiCall.py b/Lib/idlelib/MultiCall.py index 53276d9b02..b81c5ed7d0 100644 --- a/Lib/idlelib/MultiCall.py +++ b/Lib/idlelib/MultiCall.py @@ -33,7 +33,7 @@ import sys import string import re import Tkinter -import macosxSupport +from idlelib import macosxSupport # the event type constants, which define the meaning of mc_type MC_KEYPRESS=0; MC_KEYRELEASE=1; MC_BUTTONPRESS=2; MC_BUTTONRELEASE=3; @@ -111,12 +111,27 @@ _state_names = [''.join(m[0]+'-' for i, m in enumerate(_modifiers) if (1 << i) & s) for s in _states] -_state_subsets = map(lambda i: filter(lambda j: not (j & (~i)), _states), - _states) -for l in _state_subsets: - l.sort(lambda a, b, nummod = lambda x: len(filter(lambda i: (1<