示例#1
0
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)
示例#2
0
def get_ipdb():
    try:
        import ipdb.__main__
        return ipdb.__main__._init_pdb()
    except ImportError:  # old versions of ipdb
        return ipdb.Pdb(get_def_colors())