Preferences/ConfigurationPages/MasterPasswordEntryDialog.py

changeset 3010
befeff46ec0f
parent 2964
84b65fb9e780
child 3057
10516539f238
child 3160
209a07d7e401
diff -r bf5ae5d7477d -r befeff46ec0f Preferences/ConfigurationPages/MasterPasswordEntryDialog.py
--- a/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Sat Oct 12 17:31:40 2013 +0200
+++ b/Preferences/ConfigurationPages/MasterPasswordEntryDialog.py	Sat Oct 12 18:25:29 2013 +0200
@@ -44,8 +44,8 @@
         error = ""
         if self.currentPasswordEdit.isEnabled():
             from Utilities.crypto.py3PBKDF2 import verifyPassword
-            enable = \
-                verifyPassword(self.currentPasswordEdit.text(), self.__oldPasswordHash)
+            enable = verifyPassword(
+                self.currentPasswordEdit.text(), self.__oldPasswordHash)
             if not enable:
                 error = error or self.trUtf8("Wrong password entered.")
         
@@ -61,7 +61,8 @@
         if self.currentPasswordEdit.isEnabled():
             if self.newPasswordEdit.text() == self.currentPasswordEdit.text():
                 enable = False
-                error = error or self.trUtf8("Old and new password must not be the same.")
+                error = error or \
+                    self.trUtf8("Old and new password must not be the same.")
         
         self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(enable)
         self.errorLabel.setText(error)

eric ide

mercurial