From f8523995a54091cd0465b8ed137a75cccae0689c Mon Sep 17 00:00:00 2001 From: Samuel Laferriere Date: Wed, 3 Feb 2021 20:16:16 -0500 Subject: [PATCH] Change "is not" to "!=" Python3.8 warns: /home/samlaf/dev/telloapis/TelloPy/tellopy/_internal/utils.py:20: SyntaxWarning: "is not" with a literal. Did you mean "!="? if (val1 & 0xff) is not 0: --- tellopy/_internal/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tellopy/_internal/utils.py b/tellopy/_internal/utils.py index c4e59640..c8f31936 100644 --- a/tellopy/_internal/utils.py +++ b/tellopy/_internal/utils.py @@ -17,7 +17,7 @@ def uint16(val0, val1): def int16(val0, val1): - if (val1 & 0xff) is not 0: + if (val1 & 0xff) != 0: return ((val0 & 0xff) | ((val1 & 0xff) << 8)) - 0x10000 else: return (val0 & 0xff) | ((val1 & 0xff) << 8)