From bfbaa6b206abdb8b1c3861926f4334b879ec91cc Mon Sep 17 00:00:00 2001 From: Terry Jan Reedy Date: Wed, 31 Aug 2016 00:50:55 -0400 Subject: Issue #27891: Consistently group and sort imports within idlelib modules. --- Lib/idlelib/codecontext.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Lib/idlelib/codecontext.py') diff --git a/Lib/idlelib/codecontext.py b/Lib/idlelib/codecontext.py index 2a21a1f84a..f25e1b33a0 100644 --- a/Lib/idlelib/codecontext.py +++ b/Lib/idlelib/codecontext.py @@ -9,10 +9,12 @@ variable in the codecontext section of config-extensions.def. Lines which do not open blocks are not shown in the context hints pane. """ -import tkinter -from tkinter.constants import TOP, LEFT, X, W, SUNKEN import re from sys import maxsize as INFINITY + +import tkinter +from tkinter.constants import TOP, LEFT, X, W, SUNKEN + from idlelib.config import idleConf BLOCKOPENERS = {"class", "def", "elif", "else", "except", "finally", "for", -- cgit v1.2.1