summaryrefslogtreecommitdiffstats
path: root/Lib/configparser.py
diff options
context:
space:
mode:
authorVincent Michel <vxgmichel@gmail.com>2017-11-02 12:47:04 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2017-11-02 12:47:04 (GMT)
commite314853d57450b2b9523157eebd405289a795a0e (patch)
treec410df1fbf11b9ec522e915819c58f5f53cbd27a /Lib/configparser.py
parenta64ce973a3ad90e4f4a93c402e946c132f647a63 (diff)
downloadcpython-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.py2
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: