2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Amend python 3.9 compatibility fix

Avoid checking None for is_alive or isAlive
This commit is contained in:
Jarrod Johnson 2022-05-31 11:23:27 -04:00
parent b42dafb085
commit 83acdab216

View File

@ -2548,12 +2548,13 @@ class ConfigManager(object):
if statelessmode:
return
with cls._syncstate:
try:
isalive = cls._cfgwriter.isAlive()
except AttributeError:
isalive = cls._cfgwriter.is_alive()
if (cls._syncrunning and cls._cfgwriter is not None and
isalive):
isalive = False
if cls._cfgwriter is not None:
try:
isalive = cls._cfgwriter.isAlive()
except AttributeError:
isalive = cls._cfgwriter.is_alive()
if (cls._syncrunning and isalive):
cls._writepending = True
return
if cls._syncrunning: # This suggests an unclean write attempt,