mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
SF bug #1052503: pdb runcall should accept keyword arguments
This commit is contained in:
parent
9047c8f73d
commit
2ef7e6c8f2
3 changed files with 6 additions and 4 deletions
|
@ -391,13 +391,13 @@ class Bdb:
|
|||
|
||||
# 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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue