Helpviewer/UrlBar/SslLabel.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2432
b1a2f9054b28
child 3145
a9de05d4a22f
--- a/Helpviewer/UrlBar/SslLabel.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Helpviewer/UrlBar/SslLabel.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing the label to show some SSL info.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import Qt, pyqtSignal, QPoint
 from PyQt4.QtGui import QLabel
 
@@ -26,7 +28,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(SslLabel, self).__init__(parent)
         
         self.setFocusPolicy(Qt.NoFocus)
         self.setCursor(Qt.ArrowCursor)
@@ -40,7 +42,7 @@
         if evt.button() == Qt.LeftButton:
             self.clicked.emit(evt.globalPos())
         else:
-            super().mouseReleaseEvent(evt)
+            super(SslLabel, self).mouseReleaseEvent(evt)
     
     def mouseDoubleClickEvent(self, evt):
         """
@@ -51,7 +53,7 @@
         if evt.button() == Qt.LeftButton:
             self.clicked.emit(evt.globalPos())
         else:
-            super().mouseDoubleClickEvent(evt)
+            super(SslLabel, self).mouseDoubleClickEvent(evt)
     
     def setValidity(self, valid):
         """

eric ide

mercurial