src/eric7/EricNetwork/EricJsonServer.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10205
6889b666ddef
child 10423
299802979277
equal deleted inserted replaced
10372:1444b4bee64b 10373:093dcebe5ecb
133 133
134 @return list of active connection names 134 @return list of active connection names
135 @rtype list of str 135 @rtype list of str
136 """ 136 """
137 if self.__multiplex: 137 if self.__multiplex:
138 return list(self.__connections.keys()) 138 return list(self.__connections)
139 else: 139 else:
140 return [] 140 return []
141 141
142 @pyqtSlot() 142 @pyqtSlot()
143 def __receiveJson(self, idString): 143 def __receiveJson(self, idString):
243 243
244 proc = QProcess() 244 proc = QProcess()
245 proc.setProcessChannelMode(QProcess.ProcessChannelMode.ForwardedChannels) 245 proc.setProcessChannelMode(QProcess.ProcessChannelMode.ForwardedChannels)
246 if environment is not None: 246 if environment is not None:
247 env = QProcessEnvironment() 247 env = QProcessEnvironment()
248 for key, value in list(environment.items()): 248 for key, value in environment.items():
249 env.insert(key, value) 249 env.insert(key, value)
250 proc.setProcessEnvironment(env) 250 proc.setProcessEnvironment(env)
251 args = [clientScript, self.__hostAddress, str(self.serverPort())] 251 args = [clientScript, self.__hostAddress, str(self.serverPort())]
252 if idString: 252 if idString:
253 args.append(idString) 253 args.append(idString)

eric ide

mercurial