##// END OF EJS Templates
Add **kwargs to Pdb and pass into base class.
Terry Davis -
Show More
@@ -204,7 +204,7 b' class Pdb(OldPdb):'
204 """
204 """
205
205
206 def __init__(self, color_scheme=None, completekey=None,
206 def __init__(self, color_scheme=None, completekey=None,
207 stdin=None, stdout=None, context=5):
207 stdin=None, stdout=None, context=5, **kwargs):
208
208
209 # Parent constructor:
209 # Parent constructor:
210 try:
210 try:
@@ -213,8 +213,8 b' class Pdb(OldPdb):'
213 raise ValueError("Context must be a positive integer")
213 raise ValueError("Context must be a positive integer")
214 except (TypeError, ValueError):
214 except (TypeError, ValueError):
215 raise ValueError("Context must be a positive integer")
215 raise ValueError("Context must be a positive integer")
216
216 # `kwargs` ensures full compatibility with stdlib's `pdb.Pdb`.
217 OldPdb.__init__(self, completekey, stdin, stdout)
217 OldPdb.__init__(self, completekey, stdin, stdout, **kwargs)
218
218
219 # IPython changes...
219 # IPython changes...
220 self.shell = get_ipython()
220 self.shell = get_ipython()
General Comments 0
You need to be logged in to leave comments. Login now