mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-14 18:31:29 +00:00
lp-shell: rename options.mode to options.shell
This commit is contained in:
parent
04d4e0f3d9
commit
405141964e
6
lp-shell
6
lp-shell
@ -34,10 +34,10 @@ def main():
|
|||||||
dest='anonymous', default=False,
|
dest='anonymous', default=False,
|
||||||
help='Login anonymously into LP.')
|
help='Login anonymously into LP.')
|
||||||
opt_parser.add_option('--ipython',action='store_const',
|
opt_parser.add_option('--ipython',action='store_const',
|
||||||
dest='mode',const='ipython', default="ipython",
|
dest='shell',const='ipython', default="ipython",
|
||||||
help='Use ipython shell (default).')
|
help='Use ipython shell (default).')
|
||||||
opt_parser.add_option('--python',action='store_const',
|
opt_parser.add_option('--python',action='store_const',
|
||||||
dest='mode',const='python',
|
dest='shell',const='python',
|
||||||
help='Use python shell.')
|
help='Use python shell.')
|
||||||
|
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ def main():
|
|||||||
banner += '\nNote: LP can be accessed through the "lp" object.'
|
banner += '\nNote: LP can be accessed through the "lp" object.'
|
||||||
|
|
||||||
sh = None
|
sh = None
|
||||||
if options.mode == "ipython":
|
if options.shell == "ipython":
|
||||||
try:
|
try:
|
||||||
try: # ipython >= 0.11
|
try: # ipython >= 0.11
|
||||||
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
from IPython.frontend.terminal.embed import InteractiveShellEmbed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user