summaryrefslogtreecommitdiffstats
path: root/Tools/idle/Debugger.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/idle/Debugger.py')
-rw-r--r--Tools/idle/Debugger.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py
index a292b4c..a65703f 100644
--- a/Tools/idle/Debugger.py
+++ b/Tools/idle/Debugger.py
@@ -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