summaryrefslogtreecommitdiff
path: root/Lib/bdb.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-03 12:50:04 +0000
committerGuido van Rossum <guido@python.org>1995-02-03 12:50:04 +0000
commitef3db1fc426a8f29d8c78cccd632a7ff94cd28ce (patch)
tree68406424ccba754c871efa00229504882761774d /Lib/bdb.py
parentf28528813d1cf5db507ad71b1fc87b3dcdf3fb93 (diff)
downloadcpython-ef3db1fc426a8f29d8c78cccd632a7ff94cd28ce.tar.gz
fix formatting of stack entries
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r--Lib/bdb.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/bdb.py b/Lib/bdb.py
index 7642ed0cd9..0d139d45f4 100644
--- a/Lib/bdb.py
+++ b/Lib/bdb.py
@@ -253,8 +253,12 @@ class Bdb: # Basic Debugger
s = s + "<lambda>"
if frame.f_locals.has_key('__args__'):
args = frame.f_locals['__args__']
- if args is not None:
- s = s + repr.repr(args)
+ else:
+ args = None
+ if args:
+ s = s + repr.repr(args)
+ else:
+ s = s + '()'
if frame.f_locals.has_key('__return__'):
rv = frame.f_locals['__return__']
s = s + '->'