]> granicus.if.org Git - python/commit
Fix bugs with integer-valued variables when parsing Makefiles. Values
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 16 Jan 2001 16:33:28 +0000 (16:33 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 16 Jan 2001 16:33:28 +0000 (16:33 +0000)
commitb11bd03626f2c4bb545bac0ba2150d6e168faccd
treee5629e97e94f5275ecb77563b02cd4292c5360f5
parent9710297e365185e7cdb1a1075a6a1b3d378bd4fc
Fix bugs with integer-valued variables when parsing Makefiles.  Values
for done[n] can be integers as well as strings, but the code
concatenates them with strings (fixed by adding a str()) and calls
string.strip() on them (fixed by rearranging the logic)

(Presumably this wasn't noticed previously because parse_makefile()
was only called on Modules/Makefile, which contains no integer-valued
variables.)
Lib/distutils/sysconfig.py