Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2444
0fdd7f9ebd0b
child 2545
2d385ccc14f9
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing a dialog to browse the log history.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 
 from PyQt4.QtCore import pyqtSlot, Qt, QDate, QProcess, QTimer, QRegExp, \
@@ -50,7 +56,7 @@
         @param bundle name of a bundle file (string)
         @param parent parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(HgLogBrowserDialog, self).__init__(parent)
         self.setupUi(self)
         
         if mode == "log":
@@ -1279,7 +1285,7 @@
             self.intercept = False
             evt.accept()
             return
-        super().keyPressEvent(evt)
+        super(HgLogBrowserDialog, self).keyPressEvent(evt)
     
     @pyqtSlot()
     def on_phaseButton_clicked(self):

eric ide

mercurial