Skip to content

Commit 3b5bac2

Browse files
cross port importlib-metadata PR GH-76 (GH-13903)
https://gitlab.com/python-devs/importlib_metadata/merge_requests/76 (cherry picked from commit 65e5860) Co-authored-by: Anthony Sottile <[email protected]>
1 parent 606ac58 commit 3b5bac2

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Lib/importlib/metadata/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ def _from_config(cls, config):
8989
@classmethod
9090
def _from_text(cls, text):
9191
config = ConfigParser()
92+
# case sensitive: https://stackoverflow.com/q/1611799/812183
93+
config.optionxform = str
9294
try:
9395
config.read_string(text)
9496
except AttributeError: # pragma: nocover
Binary file not shown.
Binary file not shown.

Lib/test/test_importlib/test_zip.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ def test_zip_entry_points(self):
2626
scripts = dict(entry_points()['console_scripts'])
2727
entry_point = scripts['example']
2828
self.assertEqual(entry_point.value, 'example:main')
29+
entry_point = scripts['Example']
30+
self.assertEqual(entry_point.value, 'example:main')
2931

3032
def test_missing_metadata(self):
3133
self.assertIsNone(distribution('example').read_text('does not exist'))

0 commit comments

Comments
 (0)