mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
Utils/Enum: Adds a __str__
method to display enum levels
This commit is contained in:
parent
2cc60b77cb
commit
c5b1caa276
@ -554,6 +554,10 @@ def enum(args, start=0, step=1):
|
||||
|
||||
class Enum(object):
|
||||
|
||||
class __metaclass__(type):
|
||||
def __str__(cls):
|
||||
return str(cls.levels)
|
||||
|
||||
@classmethod
|
||||
def from_pod(cls, pod):
|
||||
lv = level.from_pod(pod)
|
||||
|
Loading…
x
Reference in New Issue
Block a user