Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 65e5860

Browse files
asottilewarsaw
authored andcommitted
1 parent 03d5831 commit 65e5860

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

Lib/importlib/metadata/__init__.py

+2
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

+2
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)