Update of /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23408/win32/scripts/VersionStamp
Modified Files:
bulkstamp.py
Log Message:
remove use of string module
Index: bulkstamp.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/scripts/VersionStamp/bulkstamp.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** bulkstamp.py 27 Nov 2008 09:42:42 -0000 1.8
--- bulkstamp.py 4 Dec 2008 03:38:20 -0000 1.9
***************
*** 35,39 ****
import verstamp
import fnmatch
- import string
import win32api
--- 35,38 ----
***************
*** 79,86 ****
for i in range(len(lines)):
! line = string.strip(lines[i])
if line != '' and line[0] != '#':
! idx1 = string.find(line, ' ')
! idx2 = string.find(line, '\t')
if idx1 == -1 or idx2 < idx1:
idx1 = idx2
--- 78,85 ----
for i in range(len(lines)):
! line = lines[i].strip()
if line != '' and line[0] != '#':
! idx1 = line.find(' ')
! idx2 = line.find('\t')
if idx1 == -1 or idx2 < idx1:
idx1 = idx2
***************
*** 90,94 ****
key = line[:idx1]
! val = string.strip(line[idx1:])
if key in vars:
retvars[key] = val
--- 89,93 ----
key = line[:idx1]
! val = line[idx1:].strip()
if key in vars:
retvars[key] = val
***************
*** 112,116 ****
numStamped = 0
try:
! build = string.atoi(build)
except ValueError:
print 'ERROR: build number is not a number: %s' % build
--- 111,115 ----
numStamped = 0
try:
! build = int(build)
except ValueError:
print 'ERROR: build number is not a number: %s' % build
|