##// END OF EJS Templates
Fix getglobals() if we're not running under IPython.
walter.doerwald -
Show More
@@ -262,9 +262,10 b' def item(iterator, index, default=noitem):'
262 def getglobals(g):
262 def getglobals(g):
263 if g is None:
263 if g is None:
264 if ipapi is not None:
264 if ipapi is not None:
265 return ipapi.get().user_ns
265 api = ipapi.get()
266 else:
266 if api is not None:
267 return globals()
267 return api.user_ns
268 return globals()
268 return g
269 return g
269
270
270
271
@@ -1,3 +1,8 b''
1 2006-07-27 Walter Doerwald <walter@livinglogic.de>
2
3 * IPython/Extensions/ipipe.py: Fix getglobals() if we're
4 not running under IPython.
5
1 2006-07-26 Ville Vainio <vivainio@gmail.com>
6 2006-07-26 Ville Vainio <vivainio@gmail.com>
2
7
3 * iplib.py: history now stores multiline input as single
8 * iplib.py: history now stores multiline input as single
@@ -5,7 +10,7 b''
5
10
6 2006-07-18 Walter Doerwald <walter@livinglogic.de>
11 2006-07-18 Walter Doerwald <walter@livinglogic.de>
7
12
8 * IPython/Extensions/ibrowse.py (ix): Make cursor visible over
13 * IPython/Extensions/ibrowse.py: Make cursor visible over
9 non existing attributes.
14 non existing attributes.
10
15
11 2006-07-14 Walter Doerwald <walter@livinglogic.de>
16 2006-07-14 Walter Doerwald <walter@livinglogic.de>
General Comments 0
You need to be logged in to leave comments. Login now