diff Lib/codeop.py @ 16495:69f162dcd8b4 legacy-trunk

String method conversion.
author Eric S. Raymond <esr@thyrsus.com>
date Fri, 09 Feb 2001 08:56:30 +0000
parents b5345e99596b
children a5710578c2e0
line wrap: on
line diff
--- a/Lib/codeop.py	Fri Feb 09 08:40:40 2001 +0000
+++ b/Lib/codeop.py	Fri Feb 09 08:56:30 2001 +0000
@@ -1,7 +1,6 @@
 """Utility to compile possibly incomplete Python source code."""
 
 import sys
-import string
 import traceback
 
 __all__ = ["compile_command"]
@@ -49,8 +48,8 @@
     """
 
     # Check for source consisting of only blank lines and comments
-    for line in string.split(source, "\n"):
-        line = string.strip(line)
+    for line in source.split("\n"):
+        line = line.strip()
         if line and line[0] != '#':
             break               # Leave it alone
     else: