[Python-checkins] CVS: python/dist/src/Lib codeop.py,1.2,1.3
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 00:55:16 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv22966
Modified Files:
codeop.py
Log Message:
String method conversion.
Index: codeop.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/codeop.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** codeop.py 2001/01/20 19:54:20 1.2
--- codeop.py 2001/02/09 08:55:14 1.3
***************
*** 2,6 ****
import sys
- import string
import traceback
--- 2,5 ----
***************
*** 50,55 ****
# Check for source consisting of only blank lines and comments
! for line in string.split(source, "\n"):
! line = string.strip(line)
if line and line[0] != '#':
break # Leave it alone
--- 49,54 ----
# Check for source consisting of only blank lines and comments
! for line in source.split("\n"):
! line = line.strip()
if line and line[0] != '#':
break # Leave it alone