From 2dcec693d4a891573804d7071b8970cc150b04bc 2008-09-16 16:55:32 From: gvaroquaux Date: 2008-09-16 16:55:32 Subject: [PATCH] Add a docstring to magics to fix the broken "%magic" magic. --- diff --git a/IPython/frontend/prefilterfrontend.py b/IPython/frontend/prefilterfrontend.py index ad6ce13..5e8b1c5 100644 --- a/IPython/frontend/prefilterfrontend.py +++ b/IPython/frontend/prefilterfrontend.py @@ -45,6 +45,8 @@ def mk_system_call(system_call_function, command): """ def my_system_call(args): system_call_function("%s %s" % (command, args)) + + my_system_call.__doc__ = "Calls %s" % command return my_system_call #-------------------------------------------------------------------------------