From c7da4502145dc6a298b220b331cb76024442b042 Mon Sep 17 00:00:00 2001 From: Daniel Speichert Date: Mon, 23 Jul 2018 16:00:54 -0400 Subject: [PATCH] Python 3.7 compatibility: async is reserved keyword Change-Id: I2f9a1e4fa4bb4d4cf95c2a43039397c9a03ddda8 --- pyghmi/ipmi/private/session.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index 2bc34c19..366e9627 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -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: