MachineChoice: Implement __str__ for easier debug
This commit is contained in:
parent
6d7562a02c
commit
f077cb2ee3
|
@ -487,6 +487,9 @@ class MachineChoice(enum.IntEnum):
|
|||
BUILD = 0
|
||||
HOST = 1
|
||||
|
||||
def __str__(self) -> str:
|
||||
return f'{self.get_lower_case_name()} machine'
|
||||
|
||||
def get_lower_case_name(self) -> str:
|
||||
return PerMachine('build', 'host')[self]
|
||||
|
||||
|
|
Loading…
Reference in New Issue