Commit 5eb17624 authored by Jason R. Coombs's avatar Jason R. Coombs

Correct implementation fixing failing tests

parent 6deadf03
...@@ -2273,7 +2273,8 @@ class EntryPoint(object): ...@@ -2273,7 +2273,8 @@ class EntryPoint(object):
list(map(working_set.add, items)) list(map(working_set.add, items))
pattern = re.compile( pattern = re.compile(
r'(?P<name>\w+)\s*' r'\s*'
r'(?P<name>[\w. -]+?)\s*'
r'=\s*' r'=\s*'
r'(?P<module>[\w.]+)\s*' r'(?P<module>[\w.]+)\s*'
r'(:\s*(?P<attr>[\w.]+))?\s*' r'(:\s*(?P<attr>[\w.]+))?\s*'
...@@ -2297,7 +2298,7 @@ class EntryPoint(object): ...@@ -2297,7 +2298,7 @@ class EntryPoint(object):
raise ValueError(msg, src) raise ValueError(msg, src)
res = m.groupdict() res = m.groupdict()
extras = cls._parse_extras(res['extras']) extras = cls._parse_extras(res['extras'])
attrs = (res['attr'] or '').split('.') attrs = res['attr'].split('.') if res['attr'] else ()
return cls(res['name'], res['module'], attrs, extras, dist) return cls(res['name'], res['module'], attrs, extras, dist)
@classmethod @classmethod
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment