E5Network/E5SslCertificatesInfoWidget.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3190
a9a94491c4fd
child 3591
2f2a4a76dd22
--- a/E5Network/E5SslCertificatesInfoWidget.py	Sun Mar 30 22:00:14 2014 +0200
+++ b/E5Network/E5SslCertificatesInfoWidget.py	Thu Apr 03 23:05:31 2014 +0200
@@ -9,8 +9,8 @@
 
 from __future__ import unicode_literals
 try:
-    str = unicode    # __IGNORE_WARNING__
-except (NameError):
+    str = unicode
+except NameError:
     pass
 
 from PyQt4.QtCore import pyqtSlot, QCryptographicHash, QDateTime, qVersion
@@ -158,7 +158,7 @@
         @return prepared text (string)
         """
         if txt is None or txt == "":
-            return self.trUtf8("<not part of the certificate>")
+            return self.tr("<not part of the certificate>")
         
         return Utilities.decodeString(txt)
     
@@ -171,7 +171,7 @@
         """
         serial = cert.serialNumber()
         if serial == "":
-            return self.trUtf8("<not part of the certificate>")
+            return self.tr("<not part of the certificate>")
         
         if ':' in serial:
             return str(serial, encoding="ascii").upper()

eric ide

mercurial