--- a/eric6/MicroPython/MicroPythonCommandsInterface.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/MicroPython/MicroPythonCommandsInterface.py Tue Mar 02 17:17:09 2021 +0100 @@ -165,7 +165,8 @@ if self.__serial.hasTimedOut(): return False - QCoreApplication.processEvents(QEventLoop.ExcludeUserInputEvents) + QCoreApplication.processEvents( + QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents) self.__serial.readAll() # read all data and discard it return True @@ -216,7 +217,7 @@ commandBytes = command.encode("utf-8") self.__serial.write(commandBytes + b"\x04") QCoreApplication.processEvents( - QEventLoop.ExcludeUserInputEvents) + QEventLoop.ProcessEventsFlag.ExcludeUserInputEvents) ok = self.__serial.readUntil(b"OK") if ok != b"OK": return (