diff options
author | ?ukasz Langa <lukasz@langa.pl> | 2013-01-01 22:36:33 +0100 |
---|---|---|
committer | ?ukasz Langa <lukasz@langa.pl> | 2013-01-01 22:36:33 +0100 |
commit | 58949370b5b6fdc6d28689f75ebd1d6d261e1dd3 (patch) | |
tree | 375588ada423e82439e98fe8306b7a89f7e21b97 /Lib/configparser.py | |
parent | d6f3fa86a9cfd7928c62aacb86bcad4efecdc6bc (diff) | |
parent | 57ff2375af2daff86ee39f3ecbdacb56e15bb8b2 (diff) | |
download | cpython-58949370b5b6fdc6d28689f75ebd1d6d261e1dd3.tar.gz |
Merged section order preservation fix when using `__setitem__` (issue #16820)
Diffstat (limited to 'Lib/configparser.py')
-rw-r--r-- | Lib/configparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/configparser.py b/Lib/configparser.py index c7bee6bf17..f9584cd736 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -687,7 +687,7 @@ class RawConfigParser(MutableMapping): try: with open(filename, encoding=encoding) as fp: self._read(fp, filename) - except IOError: + except OSError: continue read_ok.append(filename) return read_ok |