diff options
author | Vincent Michel <vxgmichel@gmail.com> | 2017-11-02 13:47:04 +0100 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-11-02 15:47:04 +0300 |
commit | e314853d57450b2b9523157eebd405289a795a0e (patch) | |
tree | c410df1fbf11b9ec522e915819c58f5f53cbd27a /Lib/configparser.py | |
parent | a64ce973a3ad90e4f4a93c402e946c132f647a63 (diff) | |
download | cpython-git-e314853d57450b2b9523157eebd405289a795a0e.tar.gz |
bpo-31307: Make ConfigParser.read() accept bytes objects (GH-3420)
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 e172ac8b36..33dc9b9046 100644 --- a/Lib/configparser.py +++ b/Lib/configparser.py @@ -687,7 +687,7 @@ class RawConfigParser(MutableMapping): Return list of successfully read files. """ - if isinstance(filenames, (str, os.PathLike)): + if isinstance(filenames, (str, bytes, os.PathLike)): filenames = [filenames] read_ok = [] for filename in filenames: |