mirror of
https://github.com/python/cpython.git
synced 2025-09-22 00:12:56 +00:00
#7092: Fix additional "-3" warnings in the idlelib package, and convert to absolute imports.
This commit is contained in:
parent
f28dd0d1bf
commit
d630c04ab1
37 changed files with 169 additions and 149 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue