Changeset - ffacefade769
[Not reviewed]
default
0 1 0
Mads Kiilerich - 7 years ago 2018-08-05 22:38:05
mads@kiilerich.com
ishell: use traitlets.config and require ipython >= 4.0.0

Since version 4 was released in 2015, ishell has warned:
IPython/config.py:13: ShimWarning: The `IPython.config` package has been deprecated. You should import from traitlets.config instead.
"You should import from traitlets.config instead.", ShimWarning)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/ishell.py
Show inline comments
 
@@ -41,13 +41,13 @@ from kallithea.lib.paster_commands.commo
 
class Command(BasePasterCommand):
 
    "Kallithea: Interactive Python shell"
 

	
 
    def take_action(self, args):
 
        try:
 
            from IPython import embed
 
            from IPython.config.loader import Config
 
            from traitlets.config.loader import Config
 
            cfg = Config()
 
            cfg.InteractiveShellEmbed.confirm_exit = False
 
            embed(config=cfg, banner1="Kallithea IShell.")
 
        except ImportError:
 
            print 'Kallithea ishell requires the IPython Python package'
 
            sys.exit(-1)
0 comments (0 inline, 0 general)