diff Lib/ConfigParser.py @ 25450:f8180a74b0fa 2.2

has_option(): Use the option name transform consistently. Closes SF bug #561822.
author Fred Drake <fdrake@acm.org>
date Thu, 26 Sep 2002 19:23:31 +0000
parents c6c1a5fbb6c1
children 05ffe201e902
line wrap: on
line diff
--- a/Lib/ConfigParser.py	Thu Sep 26 16:53:31 2002 +0000
+++ b/Lib/ConfigParser.py	Thu Sep 26 19:23:31 2002 +0000
@@ -320,6 +320,7 @@
     def has_option(self, section, option):
         """Check for the existence of a given option in a given section."""
         if not section or section == "DEFAULT":
+            option = self.optionxform(option)
             return self.__defaults.has_key(option)
         elif not self.has_section(section):
             return 0