Force unicode on verison string
@@ -108,7 +108,9 @@ def version_windows(versions, major=1, minor=1, point=1):
def parse_version_failsafe(version_string):
try:
- return Version(unicodedata.normalize('NFKD', version_string).encode('ascii', 'ignore'))
+ return Version(
+ unicodedata.normalize('NFKD', unicode(version_string)).encode('ascii', 'ignore')
+ )
except (UnicodeError, InvalidVersion):
return None
