diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-27 16:05:06 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-09-27 16:05:06 -0400 |
| commit | 6f6ee4f28ec5ceb95594264746da3676947aaa08 (patch) | |
| tree | ab473739d62e36c4a2fcafd418935053839f4b84 /pkg_resources.py | |
| parent | 13823cb975590687902edd3c4c073b2c1671cebc (diff) | |
| download | python-setuptools-git-6f6ee4f28ec5ceb95594264746da3676947aaa08.tar.gz | |
Avoid trailing comments
Diffstat (limited to 'pkg_resources.py')
| -rw-r--r-- | pkg_resources.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg_resources.py b/pkg_resources.py index b59ec523..f2e8b850 100644 --- a/pkg_resources.py +++ b/pkg_resources.py @@ -1155,7 +1155,8 @@ def safe_version(version): Convert an arbitrary string to a standard version string """ try: - return str(Version(version)) # this will normalize the version + # normalize the version + return str(Version(version)) except InvalidVersion: version = version.replace(' ','.') return re.sub('[^A-Za-z0-9.]+', '-', version) |
