mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-12 17:31:29 +00:00
lp-shell: disable import error pylint error on nested try-except
This commit is contained in:
parent
5f374b192b
commit
a8965d486d
2
lp-shell
2
lp-shell
@ -77,6 +77,8 @@ def main():
|
|||||||
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
||||||
sh = InteractiveShellEmbed(banner2=banner, user_ns={'lp': launchpad})
|
sh = InteractiveShellEmbed(banner2=banner, user_ns={'lp': launchpad})
|
||||||
except ImportError: # ipython < 0.11
|
except ImportError: # ipython < 0.11
|
||||||
|
# pylint does not handle nested try-except, disable import error
|
||||||
|
# pylint: disable-msg=E0611
|
||||||
from IPython.Shell import IPShellEmbed
|
from IPython.Shell import IPShellEmbed
|
||||||
sh = IPShellEmbed(user_ns={'lp': launchpad})
|
sh = IPShellEmbed(user_ns={'lp': launchpad})
|
||||||
sh.set_banner(sh.IP.BANNER + '\n' + banner)
|
sh.set_banner(sh.IP.BANNER + '\n' + banner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user