Skip to content
Snippets Groups Projects
Commit a996f3bf authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

fix typo in compare_versio

parent 28c37ecb
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ class Image(object):
i1 = int(v1)
except ValueError:
if isinstance(v1, basestring):
v1m = re.seach("\d+", v1)
v1m = re.search("\d+", v1)
if v1m is None:
raise Exception("Invalid version %s" % v1)
i1 = int(v1m.group(0))
......@@ -73,7 +73,7 @@ class Image(object):
i2 = int(v2)
except ValueError:
if isinstance(v2, basestring):
v2m = re.seach("\d+", v1)
v2m = re.search("\d+", v1)
if v2m is None:
raise Exception("Invalid version %s" % v2)
i2 = int(v2m.group(0))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment