Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py

changeset 3036
30c81c9e88b8
parent 3020
542e97d4ecb3
child 3060
5883ce99ee12
child 3160
209a07d7e401
equal deleted inserted replaced
3035:36e9f388958b 3036:30c81c9e88b8
191 191
192 It reads the output of the process and inserts it into the log. 192 It reads the output of the process and inserts it into the log.
193 """ 193 """
194 if self.process is not None: 194 if self.process is not None:
195 s = str(self.process.readAllStandardOutput(), 195 s = str(self.process.readAllStandardOutput(),
196 Preferences.getSystem("IOEncoding"), 196 Preferences.getSystem("IOEncoding"),
197 'replace') 197 'replace')
198 self.__appendText(s, False) 198 self.__appendText(s, False)
199 199
200 def __readStderr(self): 200 def __readStderr(self):
201 """ 201 """
202 Private slot to handle the readyReadStandardError signal. 202 Private slot to handle the readyReadStandardError signal.
203 203
204 It reads the error output of the process and inserts it into the log. 204 It reads the error output of the process and inserts it into the log.
205 """ 205 """
206 if self.process is not None: 206 if self.process is not None:
207 s = str(self.process.readAllStandardError(), 207 s = str(self.process.readAllStandardError(),
208 Preferences.getSystem("IOEncoding"), 208 Preferences.getSystem("IOEncoding"),
209 'replace') 209 'replace')
210 self.__appendText(s, True) 210 self.__appendText(s, True)
211 211
212 def __appendText(self, txt, error=False): 212 def __appendText(self, txt, error=False):
213 """ 213 """
214 Public method to append text to the end. 214 Public method to append text to the end.

eric ide

mercurial