mirror of
https://github.com/munki/munki.git
synced 2026-02-28 20:09:23 -06:00
Workaround for non-ASCII characters in version strings.
This commit is contained in:
@@ -1280,6 +1280,10 @@ class MunkiLooseVersion (version.LooseVersion):
|
||||
# treat None like an empty string
|
||||
self.parse('')
|
||||
if vstring is not None:
|
||||
if isinstance(vstring, unicode):
|
||||
# unicode string! Why? Oh well...
|
||||
# convert to string so version.LooseVersion doesn't choke
|
||||
vstring = vstring.encode('UTF-8')
|
||||
self.parse(str(vstring))
|
||||
|
||||
def _pad(self, version_list, max_length):
|
||||
|
||||
Reference in New Issue
Block a user