diff options
author | Vincent Michel <vxgmichel@gmail.com> | 2017-11-02 12:47:04 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-11-02 12:47:04 (GMT) |
commit | e314853d57450b2b9523157eebd405289a795a0e (patch) | |
tree | c410df1fbf11b9ec522e915819c58f5f53cbd27a /Lib/configparser.py | |
parent | a64ce973a3ad90e4f4a93c402e946c132f647a63 (diff) | |
download | cpython-e314853d57450b2b9523157eebd405289a795a0e.zip cpython-e314853d57450b2b9523157eebd405289a795a0e.tar.gz cpython-e314853d57450b2b9523157eebd405289a795a0e.tar.bz2 |
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 e172ac8..33dc9b9 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: |