Plugins/VcsPlugins/vcsMercurial/QueuesExtension/HgQueuesListAllGuardsDialog.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2791
a9577f248f04
parent 2962
d6c9d1ca2da4
child 3145
a9de05d4a22f
equal deleted inserted replaced
3056:9986ec0e559a 3057:10516539f238
30 """ 30 """
31 def __init__(self, vcs, parent=None): 31 def __init__(self, vcs, parent=None):
32 """ 32 """
33 Constructor 33 Constructor
34 34
35 @param vcs reference to the VCS object (Hg)
35 @param parent reference to the parent widget (QWidget) 36 @param parent reference to the parent widget (QWidget)
36 """ 37 """
37 super(HgQueuesListAllGuardsDialog, self).__init__(parent) 38 super(HgQueuesListAllGuardsDialog, self).__init__(parent)
38 self.setupUi(self) 39 self.setupUi(self)
39 40
72 process.start('hg', args) 73 process.start('hg', args)
73 procStarted = process.waitForStarted(5000) 74 procStarted = process.waitForStarted(5000)
74 if procStarted: 75 if procStarted:
75 finished = process.waitForFinished(30000) 76 finished = process.waitForFinished(30000)
76 if finished and process.exitCode() == 0: 77 if finished and process.exitCode() == 0:
77 output = \ 78 output = str(
78 str(process.readAllStandardOutput(), ioEncoding, 'replace') 79 process.readAllStandardOutput(), ioEncoding, 'replace')
79 80
80 if output: 81 if output:
81 guardsDict = {} 82 guardsDict = {}
82 for line in output.splitlines(): 83 for line in output.splitlines():
83 if line: 84 if line:

eric ide

mercurial