From fac575f92aa9aea98cc0f89746493eee25264dcb Mon Sep 17 00:00:00 2001 From: satmandu Date: Tue, 11 Aug 2020 14:32:41 -0400 Subject: Fix "SyntaxWarning" error Running ```kodi-send --host=localhost --port=9777 --action="ToggleDebug()"``` gives this: ```/usr/bin/kodi-send:87: SyntaxWarning: "is" with a literal. Did you mean "=="? if len(actions) is 0: Sending: {'type': 'action', 'content': 'ToggleDebug()'} ``` This fixes the error message. --- tools/EventClients/Clients/KodiSend/kodi-send.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/EventClients/Clients/KodiSend/kodi-send.py b/tools/EventClients/Clients/KodiSend/kodi-send.py index 09ba48971c..09bd4f145e 100755 --- a/tools/EventClients/Clients/KodiSend/kodi-send.py +++ b/tools/EventClients/Clients/KodiSend/kodi-send.py @@ -84,7 +84,7 @@ def main(): addr = (ip, port) sock = socket(AF_INET,SOCK_DGRAM) - if len(actions) is 0: + if len(actions) == 0: usage() sys.exit(0) -- cgit v1.2.3