eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py

changeset 7263
c1af2e327675
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r c4b5f3393d63 -r c1af2e327675 eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py
--- a/eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Tue Sep 24 18:45:33 2019 +0200
+++ b/eric6/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Tue Sep 24 18:46:24 2019 +0200
@@ -54,16 +54,18 @@
             enable = False
             error = error or self.tr("New password must not be empty.")
         
-        if self.newPasswordEdit.text() != "" and \
-           self.newPasswordEdit.text() != self.newPasswordAgainEdit.text():
+        if (
+            self.newPasswordEdit.text() != "" and
+            self.newPasswordEdit.text() != self.newPasswordAgainEdit.text()
+        ):
             enable = False
             error = error or self.tr("Repeated password is wrong.")
         
         if self.currentPasswordEdit.isEnabled():
             if self.newPasswordEdit.text() == self.currentPasswordEdit.text():
                 enable = False
-                error = error or \
-                    self.tr("Old and new password must not be the same.")
+                error = error or self.tr(
+                    "Old and new password must not be the same.")
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
         self.errorLabel.setText(error)

eric ide

mercurial