--- a/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Sun Mar 24 13:52:12 2013 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgDiffDialog.py Mon Mar 25 03:11:06 2013 +0100 @@ -7,6 +7,12 @@ Module implementing a dialog to show the output of the hg diff command process. """ +from __future__ import unicode_literals # __IGNORE_WARNING__ +try: + str = unicode +except (NameError): + pass + import os from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QFileInfo, Qt @@ -33,7 +39,7 @@ @param vcs reference to the vcs object @param parent parent widget (QWidget) """ - super().__init__(parent) + super(HgDiffDialog, self).__init__(parent) self.setupUi(self) self.buttonBox.button(QDialogButtonBox.Save).setEnabled(False) @@ -481,4 +487,4 @@ self.intercept = False evt.accept() return - super().keyPressEvent(evt) + super(HgDiffDialog, self).keyPressEvent(evt)