summaryrefslogtreecommitdiffstats
path: root/Lib/stdwin/wdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/stdwin/wdb.py')
-rwxr-xr-xLib/stdwin/wdb.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/stdwin/wdb.py b/Lib/stdwin/wdb.py
index 9914f3f..b3d6b73 100755
--- a/Lib/stdwin/wdb.py
+++ b/Lib/stdwin/wdb.py
@@ -283,6 +283,11 @@ def runctx(statement, globals, locals):
try: x.runctx(statement, globals, locals)
finally: x.close()
+def runcall(*args):
+ x = Wdb().init()
+ try: apply(Pdb().init().runcall, args)
+ finally: x.close()
+
TESTCMD = 'import x; x.main()'
def test():