(self, section, option, value=None)
| 37 | @Singleton |
| 38 | class BMConfigParser(ConfigParser.SafeConfigParser): |
| 39 | def set(self, section, option, value=None): |
| 40 | if self._optcre is self.OPTCRE or value: |
| 41 | if not isinstance(value, basestring): |
| 42 | raise TypeError("option values must be strings") |
| 43 | if not self.validate(section, option, value): |
| 44 | raise ValueError("Invalid value %s" % str(value)) |
| 45 | return ConfigParser.ConfigParser.set(self, section, option, value) |
| 46 | |
| 47 | def get(self, section, option, raw=False, variables=None): |
| 48 | try: |
no test coverage detected