]> granicus.if.org Git - python/commitdiff
Remove redefinition of has_option() method
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:58:32 +0000 (14:58 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 13 Aug 2001 14:58:32 +0000 (14:58 +0000)
Lib/ConfigParser.py

index 699803d84a5a117ca825afedda35ed8ce463d89b..7be8ffd1b4df92e49df81f377b259252f8f212ac 100644 (file)
@@ -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.