Skip to content

Commit

Permalink
Coerce versions so that 1.X matches 1.X.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hart committed Jun 2, 2017
1 parent 7aaf69f commit 215a878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lewis/core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,6 @@ def is_compatible_with_framework(version):
if version is None:
return None

lewis_version = Version(__version__)
lewis_version = Version.coerce(__version__)

return lewis_version == Version(''.join(version.split()))
return lewis_version == Version.coerce(version.strip())

0 comments on commit 215a878

Please sign in to comment.