]> git.saurik.com Git - wxWidgets.git/commitdiff
Also add a bool() function if running on a too old Python.
authorRobin Dunn <robin@alldunn.com>
Mon, 15 Mar 2004 22:46:30 +0000 (22:46 +0000)
committerRobin Dunn <robin@alldunn.com>
Mon, 15 Mar 2004 22:46:30 +0000 (22:46 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26217 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_core_ex.py

index fdfe05f5b6e45e344e8f77bfea336005d02b9357..0bb3c2e8b4f75f8e03e59e5cfbb80d7afaba6090 100644 (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