Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
--- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing a dialog for the Mercurial server.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 
 from PyQt4.QtCore import QProcess, Qt, QSize
@@ -34,7 +40,7 @@
         @param path path of the repository to serve (string)
         @param parent reference to the parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(HgServeDialog, self).__init__(parent)
         
         self.vcs = vcs
         self.__repoPath = path

eric ide

mercurial