Skip to content

Commit

Permalink
Merge pull request #7 from ckarageorgkaneen/support-newer-ipython-ver…
Browse files Browse the repository at this point in the history
…sions

Support newer ipython versions
  • Loading branch information
lebedov committed Nov 23, 2021
2 parents c1c353e + 66699ad commit c5207cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ripdb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@
ipshell = InteractiveShellEmbed()
def_colors = ipshell.colors
else:
def_colors = get_ipython.im_self.colors
try:
def_colors = get_ipython.im_self.colors
except AttributeError:
def_colors = get_ipython.__self__.colors


class Rpdb(pdb.Pdb):
Expand Down

0 comments on commit c5207cc

Please sign in to comment.