mirror of
https://opendev.org/x/pyghmi
synced 2025-01-14 11:48:33 +00:00
Python 3.7 compatibility: async is reserved keyword
Change-Id: I2f9a1e4fa4bb4d4cf95c2a43039397c9a03ddda8
This commit is contained in:
parent
50907ea2ca
commit
c7da450214
@ -514,17 +514,17 @@ class Session(object):
|
||||
self.kg = self.password
|
||||
self.port = port
|
||||
if onlogon is None:
|
||||
self.async = False
|
||||
self.async_ = False
|
||||
self.logonwaiters = [self._sync_login]
|
||||
else:
|
||||
self.async = True
|
||||
self.async_ = True
|
||||
self.logonwaiters = [onlogon]
|
||||
if self.__class__.socketchecking is None:
|
||||
self.__class__.socketchecking = threading.Lock()
|
||||
with self.socketchecking:
|
||||
self.socket = self._assignsocket(forbiddensockets=self.forbidsock)
|
||||
self.login()
|
||||
if not self.async:
|
||||
if not self.async_:
|
||||
while self.logging:
|
||||
Session.wait_for_rsp()
|
||||
if self.broken:
|
||||
|
Loading…
x
Reference in New Issue
Block a user