[Ipython-tickets] [IPython] #241: variable uninitialized in file ipython_view.py
IPython
ipython-tickets@scipy....
Mon Mar 31 09:26:39 CDT 2008
#241: variable uninitialized in file ipython_view.py
---------------------+------------------------------------------------------
Reporter: sepp | Owner: fperez
Type: defect | Status: new
Priority: normal | Milestone:
Component: ipython | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
The variable welcome_text is not initialized in file ipython_view.py if
WxConsoleView() gets called with custom intro.
The changed code should be something like:
if intro == None:
welcome_text = "Welcome to WxIPython Shell.\n\n"
welcome_text+= self.IP.getBanner()
welcome_text+= "!command -> Execute command in shell\n"
welcome_text+= "TAB -> Autocompletion\n"
else:
welcome_text = intro
greets,
sepp.
--
Ticket URL: <http://ipython.scipy.org/ipython/ipython/ticket/241>
IPython <http://ipython.scipy.org>
The IPython interactive Python system
More information about the Ipython-tickets
mailing list