def parseString(self, val): if val in self.deprecatedValues: preferred = self.origName[self.deprecatedValues[val]] print >> sys.stderr, "Warning: %s is deprecated. Please use: %s" %\ (val, preferred) val = preferred return CfgEnum.parseString(self, val)
def parseString(self, val): if val.lower() == 'true': # Backwards compatibility val = 'clean' return CfgEnum.parseString(self, val)