From 4aba437ec1ebc1caea71e7b8a3e2973ec7d769df Mon Sep 17 00:00:00 2001 From: Matthew Caruana Galizia Date: Thu, 10 Dec 2020 18:05:46 +0100 Subject: [PATCH] Fix for new API in latest IPython The old IPython.Shell is deprecated. --- sharepoint/cmd.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sharepoint/cmd.py b/sharepoint/cmd.py index 4c50b3b..07c2ddd 100644 --- a/sharepoint/cmd.py +++ b/sharepoint/cmd.py @@ -127,9 +127,7 @@ def main(): include_field_definitions=options.include_field_definitions) elif action == 'shell': try: - from IPython.Shell import IPShellEmbed - ipshell = IPShellEmbed() - ipshell() + from IPython import embed; embed() except ImportError: import code import readline