Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2405
d4b5f3bd4720
child 2677
3d4277929fb3
--- a/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgStatusDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing a dialog to show the output of the hg status command process.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 
 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer
@@ -32,7 +38,7 @@
         @param vcs reference to the vcs object
         @param parent parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(HgStatusDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.__toBeCommittedColumn = 0
@@ -409,7 +415,7 @@
             self.intercept = False
             evt.accept()
             return
-        super().keyPressEvent(evt)
+        super(HgStatusDialog, self).keyPressEvent(evt)
     
     @pyqtSlot()
     def on_refreshButton_clicked(self):

eric ide

mercurial