Plugins/VcsPlugins/vcsMercurial/HgClient.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2405
d4b5f3bd4720
child 2791
a9577f248f04
diff -r 139f182b72f6 -r 8b507a9a2d40 Plugins/VcsPlugins/vcsMercurial/HgClient.py
--- a/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgClient.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,11 @@
 Module implementing an interface to the Mercurial command server.
 """
 
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import struct
 import io
 
@@ -36,7 +41,7 @@
         @param encoding encoding to be used by the command server (string)
         @param parent reference to the parent object (QObject)
         """
-        super().__init__(parent)
+        super(HgClient, self).__init__(parent)
         
         self.__server = None
         self.__started = False

eric ide

mercurial