mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
String method conversion.
This commit is contained in:
parent
7e642e82d3
commit
b3acd3e4d3
5 changed files with 17 additions and 18 deletions
|
|
@ -7,7 +7,7 @@ modules in setup scripts."""
|
|||
|
||||
__revision__ = "$Id$"
|
||||
|
||||
import os, string
|
||||
import os
|
||||
from types import *
|
||||
|
||||
|
||||
|
|
@ -168,7 +168,7 @@ def read_setup_file (filename):
|
|||
elif switch == "-I":
|
||||
ext.include_dirs.append(value)
|
||||
elif switch == "-D":
|
||||
equals = string.find(value, "=")
|
||||
equals = value.find("=")
|
||||
if equals == -1: # bare "-DFOO" -- no value
|
||||
ext.define_macros.append((value, None))
|
||||
else: # "-DFOO=blah"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue