From e8dd4420597bb5f041901894648b6758ce97fb32 Mon Sep 17 00:00:00 2001 From: amitt001 Date: Tue, 4 Oct 2016 01:53:50 +0530 Subject: Fixes ipython singleton class 'InteractiveShellEmbed' initialization --- src/mailman/commands/cli_withlist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mailman/commands/cli_withlist.py b/src/mailman/commands/cli_withlist.py index 306fb846a..23250c1a5 100644 --- a/src/mailman/commands/cli_withlist.py +++ b/src/mailman/commands/cli_withlist.py @@ -49,13 +49,13 @@ def _start_ipython1(overrides, banner, *, debug=False): if debug: print_exc() return None - return InteractiveShellEmbed(banner1=banner, user_ns=overrides) + return InteractiveShellEmbed.instance(banner1=banner, user_ns=overrides) def _start_ipython4(overrides, banner, *, debug=False): try: from IPython.terminal.embed import InteractiveShellEmbed - shell = InteractiveShellEmbed() + shell = InteractiveShellEmbed.instance() except ImportError: if debug: print_exc() -- cgit v1.3.1