]> git.saurik.com Git - wxWidgets.git/commitdiff
improved assert
authorRobin Dunn <robin@alldunn.com>
Tue, 22 Jun 2004 19:59:21 +0000 (19:59 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 22 Jun 2004 19:59:21 +0000 (19:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_core_ex.py

index d9d121fa52d4c184f4bb069e4f5979c57e19d310..ad4f9364ead0e5b2a22ced7b52d7132b26c908e4 100644 (file)
@@ -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: