From 7af4084f43baba00640978192374bdbbf4a64ce9 2011-04-03 06:44:34 From: Paul Ivanov Date: 2011-04-03 06:44:34 Subject: [PATCH] remove unnecessary yield --- diff --git a/IPython/testing/decorators.py b/IPython/testing/decorators.py index 6956294..19a5ba5 100644 --- a/IPython/testing/decorators.py +++ b/IPython/testing/decorators.py @@ -286,7 +286,7 @@ def module_not_available(module): except ImportError: mod_not_avail = True - yield mod_not_avail + return mod_not_avail #----------------------------------------------------------------------------- # Decorators for public use