Utilities/crypto/__init__.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3030
4a0a82ddd9d2
child 3145
a9de05d4a22f
--- a/Utilities/crypto/__init__.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Utilities/crypto/__init__.py	Fri Nov 01 15:48:48 2013 +0100
@@ -78,21 +78,26 @@
                 if verifyPassword(pw, masterPassword):
                     MasterPassword = pwEncode(pw)
                 else:
-                    E5MessageBox.warning(None,
+                    E5MessageBox.warning(
+                        None,
                         QCoreApplication.translate(
                             "Crypto", "Master Password"),
                         QCoreApplication.translate(
                             "Crypto",
                             """The given password is incorrect."""))
             else:
-                E5MessageBox.critical(None,
+                E5MessageBox.critical(
+                    None,
                     QCoreApplication.translate("Crypto", "Master Password"),
-                    QCoreApplication.translate("Crypto",
+                    QCoreApplication.translate(
+                        "Crypto",
                         """There is no master password registered."""))
         except ValueError as why:
-            E5MessageBox.warning(None,
+            E5MessageBox.warning(
+                None,
                 QCoreApplication.translate("Crypto", "Master Password"),
-                QCoreApplication.translate("Crypto",
+                QCoreApplication.translate(
+                    "Crypto",
                     """<p>The given password cannot be verified.</p>"""
                     """<p>Reason: {0}""".format(str(why))))
 

eric ide

mercurial