MqttMonitor/MqttConnectionOptionsDialog.py

changeset 78
a22328182bc2
parent 66
9297e94d7d77
child 84
044df16e55aa
diff -r a580238d85de -r a22328182bc2 MqttMonitor/MqttConnectionOptionsDialog.py
--- a/MqttMonitor/MqttConnectionOptionsDialog.py	Thu May 28 17:36:58 2020 +0200
+++ b/MqttMonitor/MqttConnectionOptionsDialog.py	Tue Jun 23 19:26:33 2020 +0200
@@ -7,8 +7,6 @@
 Module implementing a dialog to enter MQTT connection options.
 """
 
-from __future__ import unicode_literals
-
 from PyQt5.QtCore import pyqtSlot, QUuid
 from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton
 
@@ -56,8 +54,10 @@
         """
         Private method to update the enabled state of the OK button.
         """
-        if self.clientIdEdit.text() == "" and \
-                not self.cleanSessionCheckBox.isChecked():
+        if (
+            self.clientIdEdit.text() == "" and
+            not self.cleanSessionCheckBox.isChecked()
+        ):
             enable = False
             E5MessageBox.critical(
                 self,

eric ide

mercurial