diff options
author | Guido van Rossum <guido@python.org> | 1995-02-03 12:50:04 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-02-03 12:50:04 (GMT) |
commit | b6aa92ebf178361e821a1ebffdce6b5fcf96bfae (patch) | |
tree | 0fa5a73fbb7e33ac3b5ae6f0677c575d630f1a45 /Lib/bdb.py | |
parent | 08e767bdc54eeceda4a20593319afd74c5380200 (diff) | |
download | cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.zip cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.tar.gz cpython-b6aa92ebf178361e821a1ebffdce6b5fcf96bfae.tar.bz2 |
fix formatting of stack entries
Diffstat (limited to 'Lib/bdb.py')
-rw-r--r-- | Lib/bdb.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 + '->' |