Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
--- a/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnRepoBrowserDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,12 @@
 Module implementing the subversion repository browser dialog.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+try:
+    str = unicode
+except (NameError):
+    pass
+
 import os
 
 from PyQt4.QtGui import QCursor, QHeaderView, QLineEdit, QDialog, \
@@ -34,7 +40,7 @@
         @param mode mode of the dialog (string, "browse" or "select")
         @param parent parent widget (QWidget)
         """
-        super().__init__(parent)
+        super(SvnRepoBrowserDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.repoTree.headerItem().setText(self.repoTree.columnCount(), "")
@@ -328,7 +334,7 @@
         if self.focusWidget() == self.urlCombo:
             return
         
-        super().accept()
+        super(SvnRepoBrowserDialog, self).accept()
     
     def getSelectedUrl(self):
         """
@@ -465,4 +471,4 @@
             self.intercept = False
             evt.accept()
             return
-        super().keyPressEvent(evt)
+        super(SvnRepoBrowserDialog, self).keyPressEvent(evt)

eric ide

mercurial