[Python-checkins] distutils2: Removed impossible code paths

tarek.ziade python-checkins at python.org
Sat Jul 24 23:45:28 CEST 2010


tarek.ziade pushed f3724d596ce4 to distutils2:

http://hg.python.org/distutils2/rev/f3724d596ce4
changeset:   373:f3724d596ce4
user:        Nicolas Cadou <ncadou at cadou.ca>
date:        Thu Jul 15 20:02:57 2010 -0400
summary:     Removed impossible code paths
files:       src/distutils2/version.py

diff --git a/src/distutils2/version.py b/src/distutils2/version.py
--- a/src/distutils2/version.py
+++ b/src/distutils2/version.py
@@ -379,8 +379,6 @@
     def __init__(self, predicate):
         predicate = predicate.strip()
         match = _PLAIN_VERSIONS.match(predicate)
-        if match is None:
-            raise ValueError('Bad predicate "%s"' % predicate)
         self.name = None
         predicates = match.groups()[0]
         self.predicates = [_split_predicate(pred.strip())
@@ -391,8 +389,6 @@
     def __init__(self, predicate):
         predicate = predicate.strip()
         match = _PLAIN_VERSIONS.match(predicate)
-        if match is None:
-            raise ValueError('Bad predicate "%s"' % predicate)
         self.name = None
         self.predicates = _split_predicate(match.groups()[0])
 

--
Repository URL: http://hg.python.org/distutils2


More information about the Python-checkins mailing list