From 53d5fec41338b9f3121f5e28e797c4cd3f07e57f Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 10 Jul 2013 01:05:51 +0000 Subject: [PATCH] fix assert in Bind to allow None for the handler. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- etg/event.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etg/event.py b/etg/event.py index 70e8b686..50de90cc 100644 --- a/etg/event.py +++ b/etg/event.py @@ -311,7 +311,7 @@ def run(): """, body="""\ assert isinstance(event, wx.PyEventBinder) - assert callable(handler) + assert callable(handler) or handler is None assert source is None or hasattr(source, 'GetId') if source is not None: id = source.GetId()