Fixed a Python 3.10 compatibility issue. eric7

Sat, 11 Dec 2021 18:22:05 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 11 Dec 2021 18:22:05 +0100
branch
eric7
changeset 8825
232c417a51bc
parent 8824
b64617e88e77
child 8826
f1552dd54060

Fixed a Python 3.10 compatibility issue.

eric7/Preferences/ConfigurationPages/MicroPythonPage.py file | annotate | diff | comparison | revisions
--- a/eric7/Preferences/ConfigurationPages/MicroPythonPage.py	Sat Dec 11 16:54:46 2021 +0100
+++ b/eric7/Preferences/ConfigurationPages/MicroPythonPage.py	Sat Dec 11 18:22:05 2021 +0100
@@ -85,7 +85,7 @@
         
         # serial link parameters
         self.timeoutSpinBox.setValue(
-            Preferences.getMicroPython("SerialTimeout") / 1000)
+            Preferences.getMicroPython("SerialTimeout") // 1000)
         # converted to seconds
         self.syncTimeCheckBox.setChecked(
             Preferences.getMicroPython("SyncTimeAfterConnect"))

eric ide

mercurial