summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/metadata
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-06-07 21:23:39 (GMT)
committerBarry Warsaw <barry@python.org>2019-06-07 21:23:38 (GMT)
commit65e5860fcc8ffe66f3c325d5484112f3b6540e8c (patch)
treef6ac1a596c84a7dd626d2cb5278d28bee832759c /Lib/importlib/metadata
parent03d5831a2d62c68654ec223168e574cd546efbf6 (diff)
downloadcpython-65e5860fcc8ffe66f3c325d5484112f3b6540e8c.zip
cpython-65e5860fcc8ffe66f3c325d5484112f3b6540e8c.tar.gz
cpython-65e5860fcc8ffe66f3c325d5484112f3b6540e8c.tar.bz2
cross port importlib-metadata PR #76 (#13903)
https://gitlab.com/python-devs/importlib_metadata/merge_requests/76
Diffstat (limited to 'Lib/importlib/metadata')
-rw-r--r--Lib/importlib/metadata/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/importlib/metadata/__init__.py b/Lib/importlib/metadata/__init__.py
index a1abdd6..944dbb5 100644
--- a/Lib/importlib/metadata/__init__.py
+++ b/Lib/importlib/metadata/__init__.py
@@ -89,6 +89,8 @@ class EntryPoint(collections.namedtuple('EntryPointBase', 'name value group')):
@classmethod
def _from_text(cls, text):
config = ConfigParser()
+ # case sensitive: https://stackoverflow.com/q/1611799/812183
+ config.optionxform = str
try:
config.read_string(text)
except AttributeError: # pragma: nocover