[Python-checkins] distutils2: Commenting on the returned value.
tarek.ziade
python-checkins at python.org
Mon Apr 5 23:09:19 CEST 2010
tarek.ziade pushed 87e2cd6f66c0 to distutils2:
http://hg.python.org/distutils2/rev/87e2cd6f66c0
changeset: 97:87e2cd6f66c0
user: pumazi
date: Wed Mar 31 08:21:22 2010 -0400
summary: Commenting on the returned value.
files: src/distutils2/_backport/pkgutil.py
diff --git a/src/distutils2/_backport/pkgutil.py b/src/distutils2/_backport/pkgutil.py
--- a/src/distutils2/_backport/pkgutil.py
+++ b/src/distutils2/_backport/pkgutil.py
@@ -691,6 +691,8 @@
file_extension = '.dist-info'
name = name.replace('-', '_')
normalized_version = suggest_normalized_version(version)
+ # Because this is a lookup procedure, something will be returned even if
+ # it is a version that cannot be normalized
if normalized_version is None:
# Unable to achieve normality?
normalized_version = version
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list