Use regexp type for the string.

This commit is contained in:
Bo Maryniuk 2016-01-25 16:40:50 +01:00
parent c2ca141956
commit 6df5d500f0

View file

@ -690,7 +690,7 @@ def install(name=None,
if version_num is None:
targets.append(param)
else:
match = re.match('^([<>])?(=)?([^<>=]+)$', version_num)
match = re.match(r'^([<>])?(=)?([^<>=]+)$', version_num)
if match:
gt_lt, equal, verstr = match.groups()
prefix = gt_lt or ''