##// END OF EJS Templates
Remove extra action generation in "All Magics" menu population....
Remove extra action generation in "All Magics" menu population. The function that populates "All Magics" and "CLASS magics" menus used to create two separate QActions: one for the all-menu and one for class menu. There is no apparent reason for doing that, since single QAction can happily serve multiple menus and buttons.

File last commit:

r15516:43a46eb6
r16299:55a3270a
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called