##// END OF EJS Templates
Fix %page not working: OInfo not subscriptable error. (#14014)...
Matthias Bussonnier -
r28214:9c07131a merge
parent child Browse files
Show More
@@ -296,11 +296,11 b' Currently the magic system has the following functions:""",'
296
296
297 oname = args and args or '_'
297 oname = args and args or '_'
298 info = self.shell._ofind(oname)
298 info = self.shell._ofind(oname)
299 if info['found']:
299 if info.found:
300 if raw:
300 if raw:
301 txt = str(info["obj"])
301 txt = str(info.obj)
302 else:
302 else:
303 txt = pformat(info["obj"])
303 txt = pformat(info.obj)
304 page.page(txt)
304 page.page(txt)
305 else:
305 else:
306 print('Object `%s` not found' % oname)
306 print('Object `%s` not found' % oname)
General Comments 0
You need to be logged in to leave comments. Login now