Kaydet (Commit) 2438a485 authored tarafından Fred Drake's avatar Fred Drake

ConfigParser.read(): Don't mask IOError exceptions.

üst ef93095a
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment