Cooperation/Connection.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 3057
10516539f238
diff -r 139f182b72f6 -r 8b507a9a2d40 Cooperation/Connection.py
--- a/Cooperation/Connection.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Cooperation/Connection.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing a class representing a peer connection.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 from PyQt4.QtCore import pyqtSignal, QTimer, QTime, QByteArray
 from PyQt4.QtNetwork import QTcpSocket, QHostInfo
 
@@ -67,7 +73,7 @@
         
         @param parent referenec to the parent object (QObject)
         """
-        super().__init__(parent)
+        super(Connection, self).__init__(parent)
         
         self.__greetingMessage = self.trUtf8("undefined")
         self.__username = self.trUtf8("unknown")

eric ide

mercurial