From 9e0b3b9ecc64fd70f734af44beb682aeba244971 2011-12-11 22:17:19 From: Thomas Kluyver Date: 2011-12-11 22:17:19 Subject: [PATCH] Restore dummy user_global_ns parameter for embedding (backwards compatibility) --- diff --git a/IPython/frontend/terminal/embed.py b/IPython/frontend/terminal/embed.py index aec755c..47b56ba 100644 --- a/IPython/frontend/terminal/embed.py +++ b/IPython/frontend/terminal/embed.py @@ -75,7 +75,11 @@ class InteractiveShellEmbed(TerminalInteractiveShell): def __init__(self, config=None, ipython_dir=None, user_ns=None, user_module=None, custom_exceptions=((),None), usage=None, banner1=None, banner2=None, - display_banner=None, exit_msg=u''): + display_banner=None, exit_msg=u'', user_global_ns=None): + + if user_global_ns is not None: + warnings.warn("user_global_ns has been replaced by user_module. The\ + parameter will be ignored.", DeprecationWarning) super(InteractiveShellEmbed,self).__init__( config=config, ipython_dir=ipython_dir, user_ns=user_ns,