From 80a64aef292778f39ff4f9fa37b4a5f1d5e7fd12 Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Tue, 15 Nov 2022 00:20:10 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- python/pyduino_mk/arduino.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/pyduino_mk/arduino.py b/python/pyduino_mk/arduino.py index cefa484..36875d2 100644 --- a/python/pyduino_mk/arduino.py +++ b/python/pyduino_mk/arduino.py @@ -130,12 +130,10 @@ def write(self, keys, endl=False): if not endl: self.__write_byte(KEYBOARD_CMD) self.__write_byte(KEYBOARD_PRINT) - self.__write_str(keys) else: self.__write_byte(KEYBOARD_CMD) self.__write_byte(KEYBOARD_PRINTLN) - self.__write_str(keys) - + self.__write_str(keys) else: raise ValueError( "Not a valid keyboard keystroke. "