#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.

This commit is contained in:
Florent Xicluna 2010-04-02 07:24:52 +00:00
parent f28dd0d1bf
commit d630c04ab1
37 changed files with 169 additions and 149 deletions

View file

@ -132,7 +132,7 @@ class GetKeysDialog(Toplevel):
order is also important: key binding equality depends on it, so
config-keys.def must use the same ordering.
"""
import macosxSupport
from idlelib import macosxSupport
if macosxSupport.runningAsOSXApp():
self.modifiers = ['Shift', 'Control', 'Option', 'Command']
else:
@ -167,7 +167,7 @@ class GetKeysDialog(Toplevel):
def GetModifiers(self):
modList = [variable.get() for variable in self.modifier_vars]
return filter(None, modList)
return [mod for mod in modList if mod]
def ClearKeySeq(self):
self.listKeysFinal.select_clear(0,END)