From 302f198c55585daf210cc1d63b440cb39bfa832d 2012-05-26 03:25:54 From: Fernando Perez Date: 2012-05-26 03:25:54 Subject: [PATCH] Cleanup of storemagic with pyflakes. --- diff --git a/IPython/extensions/storemagic.py b/IPython/extensions/storemagic.py index 9ff0bac..607d2ab 100644 --- a/IPython/extensions/storemagic.py +++ b/IPython/extensions/storemagic.py @@ -10,16 +10,15 @@ To automatically restore stored variables at startup, add this to your c.StoreMagic.autorestore = True """ -from IPython.core.error import TryNext, UsageError +import inspect, os, sys, textwrap + +from IPython.core.error import UsageError +from IPython.core.fakemodule import FakeModule from IPython.core.magic import Magics, register_magics, line_magic from IPython.core.plugin import Plugin from IPython.testing.skipdoctest import skip_doctest -from IPython.utils import pickleshare from IPython.utils.traitlets import Bool, Instance -import inspect,pickle,os,sys,textwrap -from IPython.core.fakemodule import FakeModule - def restore_aliases(ip): staliases = ip.db.get('stored_aliases', {})