Move boolcheck before import of other IDLE modules
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index 687b539..f4485bd 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -18,6 +18,9 @@
from Tkinter import *
import tkMessageBox
+# Preserve 2.2 compatibility for Mac OS X:
+import boolcheck
+
from EditorWindow import EditorWindow, fixwordbreaks
from FileList import FileList
from ColorDelegator import ColorDelegator
@@ -29,9 +32,6 @@
import rpc
import RemoteDebugger
-# Preserve 2.2 compatibility for Mac OS X:
-import boolcheck
-
IDENTCHARS = string.ascii_letters + string.digits + "_"
# Change warnings module to write to sys.__stderr__