SF bug #1052503: pdb runcall should accept keyword arguments
diff --git a/Lib/bdb.py b/Lib/bdb.py
index f555078..dacbcc0 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -391,13 +391,13 @@
# This method is more useful to debug a single function call.
- def runcall(self, func, *args):
+ def runcall(self, func, *args, **kwds):
self.reset()
sys.settrace(self.trace_dispatch)
res = None
try:
try:
- res = func(*args)
+ res = func(*args, **kwds)
except BdbQuit:
pass
finally:
diff --git a/Lib/pdb.py b/Lib/pdb.py
index 3c229ab..b608adf 100755
--- a/Lib/pdb.py
+++ b/Lib/pdb.py
@@ -993,8 +993,8 @@
# B/W compatibility
run(statement, globals, locals)
-def runcall(*args):
- return Pdb().runcall(*args)
+def runcall(*args, **kwds):
+ return Pdb().runcall(*args, **kwds)
def set_trace():
Pdb().set_trace()