summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ConfigParser.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/ConfigParser.py b/Lib/ConfigParser.py
index 4dbe606..2d0e0c6 100644
--- a/Lib/ConfigParser.py
+++ b/Lib/ConfigParser.py
@@ -170,11 +170,9 @@ class ConfigParser:
if type(filenames) is type(''):
filenames = [filenames]
for file in filenames:
- try:
- fp = open(file, 'r')
- self.__read(fp)
- except IOError:
- pass
+ fp = open(file)
+ self.__read(fp)
+ fp.close()
def get(self, section, option, raw=0, vars=None):
"""Get an option value for a given section.