aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)