Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesDefineGuardsDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2302
f29e9405c851
child 2791
a9577f248f04
equal deleted inserted replaced
2523:139f182b72f6 2525:8b507a9a2d40
4 # 4 #
5 5
6 """ 6 """
7 Module implementing a dialog to define guards for patches. 7 Module implementing a dialog to define guards for patches.
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, Qt, QProcess, QTimer, QCoreApplication 18 from PyQt4.QtCore import pyqtSlot, Qt, QProcess, QTimer, QCoreApplication
13 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem 19 from PyQt4.QtGui import QDialog, QDialogButtonBox, QAbstractButton, QListWidgetItem
31 @param vcs reference to the vcs object 37 @param vcs reference to the vcs object
32 @param extension reference to the extension module (Queues) 38 @param extension reference to the extension module (Queues)
33 @param patchesList list of patches (list of strings) 39 @param patchesList list of patches (list of strings)
34 @param parent reference to the parent widget (QWidget) 40 @param parent reference to the parent widget (QWidget)
35 """ 41 """
36 super().__init__(parent) 42 super(HgQueuesDefineGuardsDialog, self).__init__(parent)
37 self.setupUi(self) 43 self.setupUi(self)
38 44
39 self.process = None 45 self.process = None
40 self.vcs = vcs 46 self.vcs = vcs
41 self.extension = extension 47 self.extension = extension

eric ide

mercurial