• Home
  • Raw
  • Download

Lines Matching refs:option

158     def __init__(self, option, section):  argument
160 (option, section))
161 self.option = option
163 self.args = (option, section)
168 def __init__(self, option, section, msg): argument
170 self.option = option
172 self.args = (option, section, msg)
177 def __init__(self, option, section, rawval, reference): argument
183 % (section, option, reference, rawval))
184 InterpolationError.__init__(self, option, section, msg)
186 self.args = (option, section, rawval, reference)
195 def __init__(self, option, section, rawval): argument
200 % (section, option, rawval))
201 InterpolationError.__init__(self, option, section, msg)
202 self.args = (option, section, rawval)
326 def get(self, section, option): argument
327 opt = self.optionxform(option)
334 raise NoOptionError(option, section)
340 raise NoOptionError(option, section)
355 def _get(self, section, conv, option): argument
356 return conv(self.get(section, option))
358 def getint(self, section, option): argument
359 return self._get(section, int, option)
361 def getfloat(self, section, option): argument
362 return self._get(section, float, option)
367 def getboolean(self, section, option): argument
368 v = self.get(section, option)
376 def has_option(self, section, option): argument
379 option = self.optionxform(option)
380 return option in self._defaults
384 option = self.optionxform(option)
385 return (option in self._sections[section]
386 or option in self._defaults)
388 def set(self, section, option, value=None): argument
397 sectdict[self.optionxform(option)] = value
416 def remove_option(self, section, option): argument
425 option = self.optionxform(option)
426 existed = option in sectdict
428 del sectdict[option]
590 def get(self, section, option, raw=False, vars=None): argument
614 option = self.optionxform(option)
616 value = d[option]
618 raise NoOptionError(option, section)
623 return self._interpolate(section, option, value, d)
651 return [(option, d[option])
652 for option in options]
654 return [(option, self._interpolate(section, option, d[option], d))
655 for option in options]
657 def _interpolate(self, section, option, rawval, vars): argument
669 option, section, rawval, e.args[0])
673 raise InterpolationDepthError(option, section, rawval)
688 def _interpolate(self, section, option, rawval, vars): argument
691 self._interpolate_some(option, L, rawval, section, vars, 1)
696 def _interpolate_some(self, option, accum, rest, section, map, depth): argument
698 raise InterpolationDepthError(option, section, rest)
715 raise InterpolationSyntaxError(option, section,
723 option, section, rest, var)
725 self._interpolate_some(option, accum, v,
731 option, section,
734 def set(self, section, option, value=None): argument
753 ConfigParser.set(self, section, option, value)