From: Kurt B. Kaiser Date: Sat, 14 Jun 2003 03:33:20 +0000 (+0000) Subject: Remove the 2.2 compatibility module boolcheck.py and related code X-Git-Tag: v2.3c1~452 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3a0a666f26546ca0b39e61b2dc6e2f9c7d2926e;p=python Remove the 2.2 compatibility module boolcheck.py and related code M PyShell.py R boolcheck.py M run.py --- diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py index d65ec27aac..60fe3c20bc 100644 --- a/Lib/idlelib/PyShell.py +++ b/Lib/idlelib/PyShell.py @@ -19,9 +19,6 @@ from code import InteractiveInterpreter 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 diff --git a/Lib/idlelib/boolcheck.py b/Lib/idlelib/boolcheck.py deleted file mode 100644 index f682232e49..0000000000 --- a/Lib/idlelib/boolcheck.py +++ /dev/null @@ -1,9 +0,0 @@ -"boolcheck - import this module to ensure True, False, bool() builtins exist." -try: - True -except NameError: - import __builtin__ - __builtin__.True = 1 - __builtin__.False = 0 - from operator import truth - __builtin__.bool = truth diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index 7ff8b55cc2..be91d5459d 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -7,8 +7,6 @@ import thread import threading import Queue -import boolcheck - import CallTips import RemoteDebugger import RemoteObjectBrowser