handle LooseVersion == str comparisons in py3

This commit is contained in:
Ryan Pessa 2015-03-04 15:38:17 -06:00
parent d62d8f1807
commit 55389c45f8
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ else:
if PY3: # fix error with py3's LooseVersion comparisons if PY3: # fix error with py3's LooseVersion comparisons
def ver_equal(self, other): def ver_equal(self, other):
return self.version == other.version return self.version == other
LooseVersion.__eq__ = ver_equal LooseVersion.__eq__ = ver_equal