We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00bce75 commit 8bcd887Copy full SHA for 8bcd887
1 file changed
importlib_metadata/_adapters.py
@@ -1,4 +1,4 @@
1
-import string
+import re
2
import textwrap
3
import email.message
4
@@ -50,7 +50,7 @@ def json(self):
50
def transform(key):
51
value = self.get_all(key) if key in multiple_use else self[key]
52
if key == 'Keywords':
53
- value = value.split(string.whitespace)
+ value = re.split(r'\s+', value)
54
tk = key.lower().replace('-', '_')
55
return tk, value
56
0 commit comments