Beispiel #1
0
 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)
Beispiel #2
0
 def parseString(self, val):
     if val.lower() == 'true':
         # Backwards compatibility
         val = 'clean'
     return CfgEnum.parseString(self, val)
Beispiel #3
0
 def parseString(self, val):
     if val.lower() == 'true':
         # Backwards compatibility
         val = 'clean'
     return CfgEnum.parseString(self, val)