UI/UserInterface.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2474
8727522a69d5
child 2550
e15087ddb41e
--- a/UI/UserInterface.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/UI/UserInterface.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing the main user interface.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 import sys
 import logging
@@ -63,7 +69,7 @@
         
         @param stderr flag indicating stderr is being redirected
         """
-        super().__init__()
+        super(Redirector, self).__init__()
         self.stderr = stderr
         self.buffer = ''
         
@@ -145,7 +151,7 @@
         @param restartArguments list of command line parameters to be used for a
             restart (list of strings)
         """
-        super().__init__()
+        super(UserInterface, self).__init__()
         self.setAttribute(Qt.WA_DeleteOnClose)
         
         self.__restartArgs = restartArguments[:]

eric ide

mercurial