src/eric7/EricNetwork/EricJsonClient.py

branch
eric7
changeset 10689
3ede487187f2
parent 10526
2549534fcb55
child 11090
f5f5f5803935
equal deleted inserted replaced
10688:0d9853ceb288 10689:3ede487187f2
146 """ 146 """
147 try: 147 try:
148 selectErrors = 0 148 selectErrors = 0
149 while selectErrors <= 10: # selected arbitrarily 149 while selectErrors <= 10: # selected arbitrarily
150 try: 150 try:
151 rrdy, wrdy, xrdy = select.select([self.__connection], [], []) 151 rrdy, _wrdy, _xrdy = select.select([self.__connection], [], [])
152 152
153 # Just waiting for self.__connection. Therefore no check 153 # Just waiting for self.__connection. Therefore no check
154 # needed. 154 # needed.
155 method, params = self.__receiveJson() 155 method, params = self.__receiveJson()
156 if method is None: 156 if method is None:
196 @return dictionary containing the data of the waited for method 196 @return dictionary containing the data of the waited for method
197 @rtype dict 197 @rtype dict
198 """ 198 """
199 try: 199 try:
200 if waitMethod: 200 if waitMethod:
201 rrdy, wrdy, xrdy = select.select([self.__connection], [], []) 201 rrdy, _wrdy, _xrdy = select.select([self.__connection], [], [])
202 else: 202 else:
203 rrdy, wrdy, xrdy = select.select([self.__connection], [], [], 0) 203 rrdy, _wrdy, _xrdy = select.select([self.__connection], [], [], 0)
204 204
205 if self.__connection in rrdy: 205 if self.__connection in rrdy:
206 method, params = self.__receiveJson() 206 method, params = self.__receiveJson()
207 if method is not None: 207 if method is not None:
208 if method == "Exit": 208 if method == "Exit":

eric ide

mercurial