Commits

Guido van Rossum  committed a6808bc

Don't show function name if there is none

  • Participants
  • Parent commits f04288c
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Tools/idle/Debugger.py

         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