From: Robin Dunn Date: Tue, 22 Jun 2004 19:59:21 +0000 (+0000) Subject: improved assert X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2148e7014d6996b4592a0ff48f07ff123de39225 improved assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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: