mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +00:00
Fix python 3.9 compatibility
Python 3.9 renamed an attribute on a threading object, try both names to support old and new python
This commit is contained in:
parent
6d07dac46c
commit
b5f5ba69d2
@ -2548,8 +2548,12 @@ 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
|
||||
cls._cfgwriter.isAlive()):
|
||||
isalive):
|
||||
cls._writepending = True
|
||||
return
|
||||
if cls._syncrunning: # This suggests an unclean write attempt,
|
||||
|
Loading…
Reference in New Issue
Block a user