Skip to content

Commit

Permalink
Fix splitting so test passes.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Apr 18, 2021
1 parent 00bce75 commit 8bcd887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importlib_metadata/_adapters.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import string
import re
import textwrap
import email.message

Expand Down Expand Up @@ -50,7 +50,7 @@ def json(self):
def transform(key):
value = self.get_all(key) if key in multiple_use else self[key]
if key == 'Keywords':
value = value.split(string.whitespace)
value = re.split(r'\s+', value)
tk = key.lower().replace('-', '_')
return tk, value

Expand Down

0 comments on commit 8bcd887

Please sign in to comment.