Permalink
Browse files

Remove protected magic list

All magics in the list produce a useful error message when called without
any arguments.
  • Loading branch information...
1 parent 4932093 commit 0776903c097afb28ad465f2deee4b8c2bb9843d4 @bfroehle committed Aug 23, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 IPython/frontend/qt/console/mainwindow.py
@@ -613,7 +613,6 @@ def populate_all_magic_menu(self, listofmagic=None):
self.all_magic_menu.clear()
- protected_magic = set(["more","less","load_ext","pycat","loadpy","load","save","psource"])
mlist=ast.literal_eval(listofmagic)
for magic in mlist:
cell = (magic['type'] == 'cell')
@@ -625,11 +624,7 @@ def populate_all_magic_menu(self, listofmagic=None):
prefix='%'
magic_menu = self._get_magic_menu(mclass)
- if name in protected_magic:
- suffix = '?'
- else :
- suffix = ''
- pmagic = '%s%s%s'%(prefix,name,suffix)
+ pmagic = '%s%s'%(prefix,name)
xaction = QtGui.QAction(pmagic,
self,

0 comments on commit 0776903

Please sign in to comment.