minor language beautification

This commit is contained in:
Miroslav Stampar 2011-10-23 23:27:56 +00:00
parent 7c626f1dbe
commit d39d36f7a7

View File

@ -696,21 +696,21 @@ def paramToDict(place, parameters=None):
paramStr = ", ".join(test for test in conf.testParameter) paramStr = ", ".join(test for test in conf.testParameter)
if len(conf.testParameter) > 1: if len(conf.testParameter) > 1:
warnMsg = "the testable parameters '%s' " % paramStr warnMsg = "provided parameters '%s' " % paramStr
warnMsg += "you provided are not inside the %s" % place warnMsg += "are not inside the %s" % place
else: else:
parameter = conf.testParameter[0] parameter = conf.testParameter[0]
warnMsg = "the testable parameter '%s' " % paramStr warnMsg = "provided parameter '%s' " % paramStr
warnMsg += "you provided is not inside the %s" % place warnMsg += "is not inside the %s" % place
logger.warn(warnMsg) logger.warn(warnMsg)
elif len(conf.testParameter) != len(testableParameters.keys()): elif len(conf.testParameter) != len(testableParameters.keys()):
for parameter in conf.testParameter: for parameter in conf.testParameter:
if not testableParameters.has_key(parameter): if not testableParameters.has_key(parameter):
warnMsg = "the testable parameter '%s' " % parameter warnMsg = "provided parameter '%s' " % parameter
warnMsg += "you provided is not inside the %s" % place warnMsg += "is not inside the %s" % place
logger.warn(warnMsg) logger.warn(warnMsg)
return testableParameters return testableParameters