From 852cb5aed8fc06a894e1204e7e38fa2df4682ab3 Mon Sep 17 00:00:00 2001 From: kirill-panoply Date: Tue, 8 Feb 2022 10:55:55 +0300 Subject: [PATCH 1/2] Fix syntax warning during source code compilation --- panoply/sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panoply/sdk.py b/panoply/sdk.py index 4f5f044..d9dc250 100644 --- a/panoply/sdk.py +++ b/panoply/sdk.py @@ -114,7 +114,7 @@ def _sendloop(self): length = len(body) elapsed = time.time() - lastsend - if length is 0: + if length == 0: # reset the time when there's nothing to send lastsend = time.time() elif length > MAXSIZE or elapsed > FLUSH_TIMEOUT: From 570ae7f67d548886f0d19e4f547e0d0ea47963cf Mon Sep 17 00:00:00 2001 From: kirill-panoply Date: Tue, 8 Feb 2022 11:19:16 +0300 Subject: [PATCH 2/2] Bump version --- panoply/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panoply/constants.py b/panoply/constants.py index 3d70a4e..fef3850 100644 --- a/panoply/constants.py +++ b/panoply/constants.py @@ -1,2 +1,2 @@ -__version__ = "2.0.11" +__version__ = "2.0.12" __package_name__ = "panoply-python-sdk"