diff --git a/django_pdb/utils.py b/django_pdb/utils.py index 56ff28d..27cb1c7 100644 --- a/django_pdb/utils.py +++ b/django_pdb/utils.py @@ -8,13 +8,11 @@ def has_ipdb(): def get_ipdb(): - def_colors = get_def_colors() try: - import ipdb - from ipdb import __main__ - return ipdb.__main__.Pdb(def_colors) + import ipdb.__main__ + return ipdb.__main__._init_pdb() except ImportError: # old versions of ipdb - return ipdb.Pdb(def_colors) + return ipdb.Pdb(get_def_colors()) def get_pdb_set_trace():