summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2002-09-18 03:15:56 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2002-09-18 03:15:56 (GMT)
commit7879ad0c4f66079d4dbd752f068c200825db30c0 (patch)
treebe5ba4b2546a07ecbecd48b37c6a5cf052cf3fe4
parentd1ec940ffcd88e298d00b2671260e56a2f6c5238 (diff)
downloadcpython-7879ad0c4f66079d4dbd752f068c200825db30c0.zip
cpython-7879ad0c4f66079d4dbd752f068c200825db30c0.tar.gz
cpython-7879ad0c4f66079d4dbd752f068c200825db30c0.tar.bz2
Merge Py Idle changes:
Rev 1.17 doerwalter (string methods)
-rw-r--r--Lib/idlelib/StackViewer.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/idlelib/StackViewer.py b/Lib/idlelib/StackViewer.py
index b8d356f..5807707 100644
--- a/Lib/idlelib/StackViewer.py
+++ b/Lib/idlelib/StackViewer.py
@@ -1,6 +1,5 @@
import os
import sys
-import string
import linecache
from TreeWidget import TreeNode, TreeItem, ScrolledCanvas
@@ -49,7 +48,7 @@ class FrameTreeItem(TreeItem):
filename = code.co_filename
funcname = code.co_name
sourceline = linecache.getline(filename, lineno)
- sourceline = string.strip(sourceline)
+ sourceline = sourceline.strip()
if funcname in ("?", "", None):
item = "%s, line %d: %s" % (modname, lineno, sourceline)
else: