fix regex

This commit is contained in:
Matthias Bussonnier 2016-01-08 19:45:36 +01:00
parent 6aaa27c024
commit 9ab90bd835

View File

@ -101,7 +101,7 @@ def test_pep440_version():
pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d+)?$')
pep440re = re.compile('^(\d+)\.(\d+)\.(\d+((a|b|rc)\d+)?)(\.post\d+)?(\.dev\d*)?$')
def raise_on_bad_version(version):
if not pep440re.match(version):