mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
Don't show function name if there is none
This commit is contained in:
parent
0e56568a0d
commit
b7ffca393f
@ -69,7 +69,9 @@ class Debugger(bdb.Bdb):
|
||||
file = code.co_filename
|
||||
base = os.path.basename(file)
|
||||
lineno = frame.f_lineno
|
||||
message = "%s:%s: %s()" % (base, lineno, code.co_name)
|
||||
message = "%s:%s" % (base, lineno)
|
||||
if code.co_name != "?":
|
||||
message = "%s: %s()" % (message, code.co_name)
|
||||
self.status.configure(text=message)
|
||||
if info:
|
||||
type, value, tb = info
|
||||
|
Loading…
Reference in New Issue
Block a user