summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dist.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2005-03-21 06:36:32 (GMT)
committerFred Drake <fdrake@acm.org>2005-03-21 06:36:32 (GMT)
commit227e8ffa20f7c2c3c1d1080da20c397bca51976d (patch)
tree541c1c13a546570d0b8d7283dcf84076edc7821d /Lib/distutils/dist.py
parentdd6f04630f4858585ed122217e38626d0b0a570c (diff)
downloadcpython-227e8ffa20f7c2c3c1d1080da20c397bca51976d.zip
cpython-227e8ffa20f7c2c3c1d1080da20c397bca51976d.tar.gz
cpython-227e8ffa20f7c2c3c1d1080da20c397bca51976d.tar.bz2
- rename check_provision() to split_revision()
- fix indentation to conform to the Python style guide - add more tests and documentation
Diffstat (limited to 'Lib/distutils/dist.py')
-rw-r--r--Lib/distutils/dist.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/distutils/dist.py b/Lib/distutils/dist.py
index c5dd5cb..f015874 100644
--- a/Lib/distutils/dist.py
+++ b/Lib/distutils/dist.py
@@ -1181,11 +1181,7 @@ class DistributionMetadata:
value = [v.strip() for v in value]
for v in value:
import distutils.versionpredicate
- ver = distutils.versionpredicate.check_provision(v)
- if ver:
- import distutils.version
- sv = distutils.version.StrictVersion()
- sv.parse(ver.strip()[1:-1])
+ distutils.versionpredicate.split_provision(v)
self.provides = value
def get_obsoletes(self):