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