summaryrefslogtreecommitdiffstats
path: root/Mac/Tools/IDE/Wtraceback.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Tools/IDE/Wtraceback.py')
-rw-r--r--Mac/Tools/IDE/Wtraceback.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/Wtraceback.py b/Mac/Tools/IDE/Wtraceback.py
index 51b54f3..90a25fe 100644
--- a/Mac/Tools/IDE/Wtraceback.py
+++ b/Mac/Tools/IDE/Wtraceback.py
@@ -147,9 +147,7 @@ class TraceBack:
tbline = ""
if os.path.exists(filename):
filename = os.path.split(filename)[1]
- tbline = 'File "' + filename + '", line ' + `lineno` + ', in ' + func
- else:
- tbline = 'File "' + filename + '", line ' + `lineno` + ', in ' + func
+ tbline = 'File "%s", line %r, in %r' % (filename, lineno, func)
if line:
tbline = tbline + '\r ' + line
self.textlist.append(tbline[:255])