diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 12:41:00 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-03-20 12:41:00 -0400 |
| commit | e1c326e105c1bbd3585e5867973b8d54dc9d4929 (patch) | |
| tree | b69c9c323c4d8c9fce6621ec8f6649ddc2405088 /pkg_resources/__init__.py | |
| parent | a074b625e3c765ac62cb4240d5c8d1d35152f8f4 (diff) | |
| download | python-setuptools-git-e1c326e105c1bbd3585e5867973b8d54dc9d4929.tar.gz | |
Reindent EGG_NAME to reflect structure.
Diffstat (limited to 'pkg_resources/__init__.py')
| -rw-r--r-- | pkg_resources/__init__.py | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 4cdb40dc..507bacc6 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -2267,9 +2267,17 @@ OBRACKET = re.compile(r"\s*\[").match CBRACKET = re.compile(r"\s*\]").match MODULE = re.compile(r"\w+(\.\w+)*$").match EGG_NAME = re.compile( - r"(?P<name>.*?)" - r"( -(?P<ver>[^-]+) (-py(?P<pyver>[^-]+) (-(?P<plat>.+))? )? )?$", - re.VERBOSE | re.IGNORECASE + r""" + (?P<name>.*?) ( + -(?P<ver>[^-]+) ( + -py(?P<pyver>[^-]+) ( + -(?P<plat>.+) + )? + )? + )? + $ + """, + re.VERBOSE | re.IGNORECASE, ).match |
