-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
The proposed impl is kinda
def urls(self):
md = self.todict()
try:
pUrls = dict(el.split(", ") for el in md['project_url'])
except KeyError:
pUrls = {}
pUrls = dict(el.split(", ") for el in md['project_url'])
hUrls = {}
for k in ('home_page', "download_url"):
v = md.get(k, None)
if v:
hUrls[k] = v
return pUrls, hUrls
(though it is inefficient to use self.todict()
, it should be refactored)
Metadata
Metadata
Assignees
Labels
No labels