mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Remove redefinition of has_option() method
This commit is contained in:
parent
8ea9227b1b
commit
7c2cf73811
1 changed files with 0 additions and 7 deletions
|
@ -42,9 +42,6 @@ ConfigParser -- responsible for for parsing a list of
|
||||||
options(section)
|
options(section)
|
||||||
return list of configuration options for the named section
|
return list of configuration options for the named section
|
||||||
|
|
||||||
has_option(section, option)
|
|
||||||
return whether the given section has the given option
|
|
||||||
|
|
||||||
read(filenames)
|
read(filenames)
|
||||||
read and parse the list of named configuration files, given by
|
read and parse the list of named configuration files, given by
|
||||||
name. A single filename is also allowed. Non-existing files
|
name. A single filename is also allowed. Non-existing files
|
||||||
|
@ -215,10 +212,6 @@ class ConfigParser:
|
||||||
del opts['__name__']
|
del opts['__name__']
|
||||||
return opts.keys()
|
return opts.keys()
|
||||||
|
|
||||||
def has_option(self, section, option):
|
|
||||||
"""Return whether the given section has the given option."""
|
|
||||||
return option in self.options(section)
|
|
||||||
|
|
||||||
def read(self, filenames):
|
def read(self, filenames):
|
||||||
"""Read and parse a filename or a list of filenames.
|
"""Read and parse a filename or a list of filenames.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue