aboutsummaryrefslogtreecommitdiffstats
path: root/pkg_resources.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-09-27 16:05:06 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-09-27 16:05:06 -0400
commit6f6ee4f28ec5ceb95594264746da3676947aaa08 (patch)
treeab473739d62e36c4a2fcafd418935053839f4b84 /pkg_resources.py
parent13823cb975590687902edd3c4c073b2c1671cebc (diff)
downloadexternal_python_setuptools-6f6ee4f28ec5ceb95594264746da3676947aaa08.tar.gz
external_python_setuptools-6f6ee4f28ec5ceb95594264746da3676947aaa08.tar.bz2
external_python_setuptools-6f6ee4f28ec5ceb95594264746da3676947aaa08.zip
Avoid trailing comments
Diffstat (limited to 'pkg_resources.py')
-rw-r--r--pkg_resources.py3
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)