From c131374a844ddf8bea50190a48d3f07488862c7a 2019-08-21 17:30:08 From: Terry Davis <16829776+terrdavis@users.noreply.github.com> Date: 2019-08-21 17:30:08 Subject: [PATCH] Add **kwargs to Pdb and pass into base class. --- diff --git a/IPython/core/debugger.py b/IPython/core/debugger.py index 0e3f617..bde22bf 100644 --- a/IPython/core/debugger.py +++ b/IPython/core/debugger.py @@ -204,7 +204,7 @@ class Pdb(OldPdb): """ def __init__(self, color_scheme=None, completekey=None, - stdin=None, stdout=None, context=5): + stdin=None, stdout=None, context=5, **kwargs): # Parent constructor: try: @@ -213,8 +213,8 @@ class Pdb(OldPdb): raise ValueError("Context must be a positive integer") except (TypeError, ValueError): raise ValueError("Context must be a positive integer") - - OldPdb.__init__(self, completekey, stdin, stdout) + # `kwargs` ensures full compatibility with stdlib's `pdb.Pdb`. + OldPdb.__init__(self, completekey, stdin, stdout, **kwargs) # IPython changes... self.shell = get_ipython()