Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def get_ipdb():
def_colors = get_def_colors()
try:
import ipdb
from ipdb import __main__
return ipdb.__main__.Pdb(def_colors)
except ImportError: # old versions of ipdb
return ipdb.Pdb(def_colors)