From a52f924933786846f69adee4cc4bb35d3ca151c9 Mon Sep 17 00:00:00 2001 From: Rik Date: Thu, 9 May 2019 12:25:32 +0200 Subject: [PATCH] fixed runserver --ipdb for latest ipdb version --- django_pdb/utils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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():