mirror of
https://github.com/python/cpython.git
synced 2024-12-03 14:55:56 +08:00
Remove the 2.2 compatibility module boolcheck.py and related code
M PyShell.py R boolcheck.py M run.py
This commit is contained in:
parent
ae8bbff231
commit
b3a0a666f2
@ -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
|
||||
|
@ -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
|
@ -7,8 +7,6 @@ import thread
|
||||
import threading
|
||||
import Queue
|
||||
|
||||
import boolcheck
|
||||
|
||||
import CallTips
|
||||
import RemoteDebugger
|
||||
import RemoteObjectBrowser
|
||||
|
Loading…
Reference in New Issue
Block a user