Changeset - 8dcf73cc9098
[Not reviewed]
default
0 1 0
Mads Kiilerich - 9 years ago 2016-09-06 00:51:18
madski@unity3d.com
paster: cleanup ishell imports - don't try to import * locally

Fixes Python warning.
1 file changed with 7 insertions and 9 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/paster_commands/ishell.py
Show inline comments
 
@@ -29,6 +29,12 @@ Original author and date, and relevant c
 
import os
 
import sys
 

	
 
# imports, used in IPython shell
 
import time
 
import shutil
 
import datetime
 
from kallithea.model.db import *
 

	
 
from kallithea.lib.paster_commands.common import BasePasterCommand
 

	
 

	
 
@@ -47,14 +53,6 @@ class Command(BasePasterCommand):
 
        #get SqlAlchemy session
 
        self._init_session()
 

	
 
        # imports, used in IPython shell
 
        import os
 
        import sys
 
        import time
 
        import shutil
 
        import datetime
 
        from kallithea.model.db import *
 

	
 
        try:
 
            from IPython import embed
 
            from IPython.config.loader import Config
 
@@ -62,7 +60,7 @@ class Command(BasePasterCommand):
 
            cfg.InteractiveShellEmbed.confirm_exit = False
 
            embed(config=cfg, banner1="Kallithea IShell.")
 
        except ImportError:
 
            print 'IPython installation is required for ishell'
 
            print 'Kallithea ishell requires the IPython Python package'
 
            sys.exit(-1)
 

	
 
    def update_parser(self):
0 comments (0 inline, 0 general)