Helpviewer/UrlBar/FavIconLabel.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 3057
10516539f238
diff -r 139f182b72f6 -r 8b507a9a2d40 Helpviewer/UrlBar/FavIconLabel.py
--- a/Helpviewer/UrlBar/FavIconLabel.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Helpviewer/UrlBar/FavIconLabel.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing the label to show the web site icon.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 from PyQt4.QtCore import Qt, QPoint, QUrl, QMimeData
 from PyQt4.QtGui import QLabel, QApplication, QDrag, QPixmap
 
@@ -21,7 +27,7 @@
         
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(FavIconLabel, self).__init__(parent)
         
         self.__browser = None
         self.__dragStartPos = QPoint()
@@ -71,7 +77,7 @@
         """
         if evt.button() == Qt.LeftButton:
             self.__dragStartPos = evt.pos()
-        super().mousePressEvent(evt)
+        super(FavIconLabel, self).mousePressEvent(evt)
     
     def mouseMoveEvent(self, evt):
         """

eric ide

mercurial