Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 3534
325a637dbb14
parent 3531
c4b36c72184d
parent 3532
86ac124f322c
child 3536
c06338ca892b
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Thu Apr 24 18:57:10 2014 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Fri Apr 25 18:37:47 2014 +0200
@@ -7,6 +7,12 @@
 Module implementing a dialog to browse the log history.
 """
 
+from __future__ import unicode_literals
+try:
+    str = unicode
+except NameError:
+    pass
+
 import os
 import re
 
@@ -56,7 +62,7 @@
         @param mode mode of the dialog (string; one of log, incoming, outgoing)
         @param parent parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(HgLogBrowserDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.__position = QPoint()
@@ -225,7 +231,7 @@
             self.move(self.__position)
         self.__resetUI()
         
-        super().show()
+        super(HgLogBrowserDialog, self).show()
     
     def __resetUI(self):
         """
@@ -1466,7 +1472,7 @@
             self.intercept = False
             evt.accept()
             return
-        super().keyPressEvent(evt)
+        super(HgLogBrowserDialog, self).keyPressEvent(evt)
     
     @pyqtSlot()
     def __phaseActTriggered(self):

eric ide

mercurial