diff --git a/joystick_diagrams/input/device.py b/joystick_diagrams/input/device.py index a02f7a8..951bbb4 100644 --- a/joystick_diagrams/input/device.py +++ b/joystick_diagrams/input/device.py @@ -57,7 +57,7 @@ def validate_guid(guid: str) -> str: """ try: - return UUID(guid.strip()).__str__() + return str(UUID(guid.strip())) except ValueError as e: raise ValueError(f"GUID {guid} is not valid: {e}") from e diff --git a/joystick_diagrams/input/input.py b/joystick_diagrams/input/input.py index ce56790..42ec44e 100644 --- a/joystick_diagrams/input/input.py +++ b/joystick_diagrams/input/input.py @@ -28,7 +28,7 @@ def __repr__(self): return f"{self.input_control} - {self.command} - {self.modifiers}" def __str__(self): - mod_to_string = [x.__str__() for x in self.modifiers] + mod_to_string = [str(x) for x in self.modifiers] return f"{self.command} - {str(mod_to_string)}" def __post_init__(self):