[Python-checkins] CVS: python/dist/src/Lib/distutils extension.py,1.6,1.7
Eric S. Raymond
esr@users.sourceforge.net
Fri, 09 Feb 2001 04:20:54 -0800
Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory usw-pr-cvs1:/tmp/cvs-serv22445
Modified Files:
extension.py
Log Message:
String method conversion.
Index: extension.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/extension.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** extension.py 2000/09/17 00:45:18 1.6
--- extension.py 2001/02/09 12:20:51 1.7
***************
*** 8,12 ****
__revision__ = "$Id$"
! import os, string
from types import *
--- 8,12 ----
__revision__ = "$Id$"
! import os
from types import *
***************
*** 169,173 ****
ext.include_dirs.append(value)
elif switch == "-D":
! equals = string.find(value, "=")
if equals == -1: # bare "-DFOO" -- no value
ext.define_macros.append((value, None))
--- 169,173 ----
ext.include_dirs.append(value)
elif switch == "-D":
! equals = value.find("=")
if equals == -1: # bare "-DFOO" -- no value
ext.define_macros.append((value, None))