Use str as base class for PluginVersion
To allow PluginVersion class to be passed to builtin functions expecting a string type, need to use 'str' as the base class. This ensures the change to support version comparison is completely transparent to the calling code, but permits changes to benefit from the new behaviour without breaking existing usage. Change-Id: I7d434294fa45171e47ea4876d01398cb75f5d962
This commit is contained in:
parent
344b5f3ffa
commit
87a892a232
@ -67,7 +67,7 @@ class Plugin(dict):
|
||||
super(Plugin, self).__setitem__(key, value)
|
||||
|
||||
|
||||
class PluginVersion(object):
|
||||
class PluginVersion(str):
|
||||
'''Class providing comparison capabilities for plugin versions.'''
|
||||
|
||||
_VERSION_RE = re.compile(r'(.*)-(?:SNAPSHOT|BETA)')
|
||||
|
Loading…
Reference in New Issue
Block a user