Skip to content

Commit

Permalink
Backport PR ipython#14014: Fix %page not working: OInfo not subscript…
Browse files Browse the repository at this point in the history
…able error.
  • Loading branch information
Carreau authored and meeseeksmachine committed Apr 25, 2023
1 parent 37242ba commit 0f02d83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions IPython/core/magics/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,11 +296,11 @@ def page(self, parameter_s=''):

oname = args and args or '_'
info = self.shell._ofind(oname)
if info['found']:
if info.found:
if raw:
txt = str(info["obj"])
txt = str(info.obj)
else:
txt = pformat(info["obj"])
txt = pformat(info.obj)
page.page(txt)
else:
print('Object `%s` not found' % oname)
Expand Down

0 comments on commit 0f02d83

Please sign in to comment.