Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2406
975af671146d
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to show the output of the svn log command process. 7 Module implementing a dialog to show the output of the svn log command process.
8 """ 8 """
9
10 from __future__ import unicode_literals # __IGNORE_WARNING__
11 try:
12 str = unicode
13 except (NameError):
14 pass
9 15
10 import os 16 import os
11 17
12 from PyQt4.QtCore import QTimer, QByteArray, QProcess, QRegExp, QUrl, pyqtSlot 18 from PyQt4.QtCore import QTimer, QByteArray, QProcess, QRegExp, QUrl, pyqtSlot
13 from PyQt4.QtGui import QWidget, QLineEdit, QApplication, QTextCursor, QDialogButtonBox 19 from PyQt4.QtGui import QWidget, QLineEdit, QApplication, QTextCursor, QDialogButtonBox
32 Constructor 38 Constructor
33 39
34 @param vcs reference to the vcs object 40 @param vcs reference to the vcs object
35 @param parent parent widget (QWidget) 41 @param parent parent widget (QWidget)
36 """ 42 """
37 super().__init__(parent) 43 super(SvnLogDialog, self).__init__(parent)
38 self.setupUi(self) 44 self.setupUi(self)
39 45
40 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) 46 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
41 47
42 self.process = QProcess() 48 self.process = QProcess()
318 """ 324 """
319 if self.intercept: 325 if self.intercept:
320 self.intercept = False 326 self.intercept = False
321 evt.accept() 327 evt.accept()
322 return 328 return
323 super().keyPressEvent(evt) 329 super(SvnLogDialog, self).keyPressEvent(evt)

eric ide

mercurial