Fix Python 2.7 support

This commit is contained in:
allegroai 2022-11-11 15:30:25 +02:00
parent 0e283dd514
commit 251cfa30a9

View File

@ -211,7 +211,8 @@ class BackgroundReportService(BackgroundMonitor, AsyncManagerMixin):
if self._async_enable:
self._add_async_result(res)
else:
self._processing_events.clear()
# python 2.7 style clear()
self._processing_events[:] = []
def send_all_events(self, wait=True):
self._write()