summaryrefslogtreecommitdiff
path: root/Lib/ConfigParser.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:58:32 +0000
committerAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:58:32 +0000
commitaa12481838a12d8a0b022f279cc3c2e8dd0a79ba (patch)
treeab322dfcb3df4a5a99db42c8d3a34a9d13b6291b /Lib/ConfigParser.py
parent12b4b97357fcd33f0029805de172c10c7713da59 (diff)
downloadcpython-aa12481838a12d8a0b022f279cc3c2e8dd0a79ba.tar.gz
Remove redefinition of has_option() method
Diffstat (limited to 'Lib/ConfigParser.py')
-rw-r--r--Lib/ConfigParser.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 699803d84a..7be8ffd1b4 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -42,9 +42,6 @@ ConfigParser -- responsible for for parsing a list of
options(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 and parse the list of named configuration files, given by
name. A single filename is also allowed. Non-existing files
@@ -215,10 +212,6 @@ class ConfigParser:
del opts['__name__']
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):
"""Read and parse a filename or a list of filenames.