From 2148e7014d6996b4592a0ff48f07ff123de39225 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Tue, 22 Jun 2004 19:59:21 +0000 Subject: [PATCH] improved assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_core_ex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wxPython/src/_core_ex.py b/wxPython/src/_core_ex.py index d9d121fa52..ad4f9364ea 100644 --- a/wxPython/src/_core_ex.py +++ b/wxPython/src/_core_ex.py @@ -102,7 +102,7 @@ def CallAfter(callable, *args, **kw): :see: `wx.FutureCall` """ app = wx.GetApp() - assert app, 'No wxApp created yet' + assert app is not None, 'No wx.App created yet' global _wxPyCallAfterId if _wxPyCallAfterId is None: -- 2.50.0