##// 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 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 209 # Parent constructor:
210 210 try:
@@ -213,8 +213,8 b' class Pdb(OldPdb):'
213 213 raise ValueError("Context must be a positive integer")
214 214 except (TypeError, ValueError):
215 215 raise ValueError("Context must be a positive integer")
216
217 OldPdb.__init__(self, completekey, stdin, stdout)
216 # `kwargs` ensures full compatibility with stdlib's `pdb.Pdb`.
217 OldPdb.__init__(self, completekey, stdin, stdout, **kwargs)
218 218
219 219 # IPython changes...
220 220 self.shell = get_ipython()
General Comments 0
You need to be logged in to leave comments. Login now