Also add a bool() function if running on a too old Python.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2004-03-15 22:46:30 +00:00
parent 8b7fa2d969
commit c19bd0a37a

View File

@ -6,6 +6,8 @@ try:
except NameError:
__builtins__.True = 1==1
__builtins__.False = 1==0
def bool(value): return not not value
__builtins__.bool = bool