ProjectPyramid/PyramidRoutesDialog.py

changeset 56
c7adc68350dd
parent 34
d20f7218d53c
child 57
e654970c913e
--- a/ProjectPyramid/PyramidRoutesDialog.py	Sat Sep 28 13:34:57 2013 +0200
+++ b/ProjectPyramid/PyramidRoutesDialog.py	Sun Oct 27 22:43:17 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing a dialog showing the available routes.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 
 from PyQt4.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication
@@ -30,7 +36,7 @@
         @param project reference to the project object (ProjectPyramid.Project.Project)
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(PyramidRoutesDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.buttonBox.button(QDialogButtonBox.Close).setEnabled(False)
@@ -241,4 +247,4 @@
             self.intercept = False
             evt.accept()
             return
-        super().keyPressEvent(evt)
+        super(PyramidRoutesDialog, self).keyPressEvent(evt)

eric ide

mercurial