Make acprep use "str.split" not "string.split"

Python is displeased with acprep if a *FLAGS environment variable is
set. This patch converts the problematic "string.split" statement to
instead be "str.split", which appears to fix the problem.
This commit is contained in:
Travis Snoozy 2013-05-23 09:25:10 -06:00
parent 7108f25590
commit 119e337f4b

2
acprep
View file

@ -248,7 +248,7 @@ class PrepareBuild(CommandLineApp):
self.envvars[varname] = os.environ[varname]
if varname.endswith('FLAGS'):
self.__dict__[varname] = string.split(os.environ[varname])
self.__dict__[varname] = str.split(os.environ[varname])
self.envvars[varname] = ''
# If ~/Products/ or build/ exists, use them instead of the source tree