improved assert

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-06-22 19:59:21 +00:00
parent d01bf7ae34
commit 2148e7014d

View 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: