From c19bd0a37acc8a5bf6b53aae81ad211e0a51f442 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 15 Mar 2004 22:46:30 +0000 Subject: [PATCH] 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 --- wxPython/src/_core_ex.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index fdfe05f5b6..0bb3c2e8b4 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -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