mirror of
https://github.com/python/cpython.git
synced 2024-12-04 07:15:09 +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 *
|
from Tkinter import *
|
||||||
import tkMessageBox
|
import tkMessageBox
|
||||||
|
|
||||||
# Preserve 2.2 compatibility for Mac OS X:
|
|
||||||
import boolcheck
|
|
||||||
|
|
||||||
from EditorWindow import EditorWindow, fixwordbreaks
|
from EditorWindow import EditorWindow, fixwordbreaks
|
||||||
from FileList import FileList
|
from FileList import FileList
|
||||||
from ColorDelegator import ColorDelegator
|
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 threading
|
||||||
import Queue
|
import Queue
|
||||||
|
|
||||||
import boolcheck
|
|
||||||
|
|
||||||
import CallTips
|
import CallTips
|
||||||
import RemoteDebugger
|
import RemoteDebugger
|
||||||
import RemoteObjectBrowser
|
import RemoteObjectBrowser
|
||||||
|
Loading…
Reference in New Issue
Block a user