Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2405
d4b5f3bd4720
child 2677
3d4277929fb3
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 hg log command process. 7 Module implementing a dialog to show the output of the hg 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 pyqtSlot, QProcess, QTimer, QUrl, QByteArray 18 from PyQt4.QtCore import pyqtSlot, QProcess, QTimer, QUrl, QByteArray
13 from PyQt4.QtGui import QWidget, QDialogButtonBox, QApplication, \ 19 from PyQt4.QtGui import QWidget, QDialogButtonBox, QApplication, \
36 @param vcs reference to the vcs object 42 @param vcs reference to the vcs object
37 @param mode mode of the dialog (string; one of log, incoming, outgoing) 43 @param mode mode of the dialog (string; one of log, incoming, outgoing)
38 @param bundle name of a bundle file (string) 44 @param bundle name of a bundle file (string)
39 @param parent parent widget (QWidget) 45 @param parent parent widget (QWidget)
40 """ 46 """
41 super().__init__(parent) 47 super(HgLogDialog, self).__init__(parent)
42 self.setupUi(self) 48 self.setupUi(self)
43 49
44 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True) 50 self.buttonBox.button(QDialogButtonBox.Close).setDefault(True)
45 51
46 self.process = QProcess() 52 self.process = QProcess()
493 """ 499 """
494 if self.intercept: 500 if self.intercept:
495 self.intercept = False 501 self.intercept = False
496 evt.accept() 502 evt.accept()
497 return 503 return
498 super().keyPressEvent(evt) 504 super(HgLogDialog, self).keyPressEvent(evt)

eric ide

mercurial