diff options
author | satmandu <satadru@umich.edu> | 2020-08-11 14:32:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 14:32:41 -0400 |
commit | fac575f92aa9aea98cc0f89746493eee25264dcb (patch) | |
tree | 097aedc8ff7a4458b1232e614c6b891825471829 /tools/EventClients/Clients/KodiSend/kodi-send.py | |
parent | 641f0e3a73c96565fe37a90066e7c30ddfad6a91 (diff) |
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.
Diffstat (limited to 'tools/EventClients/Clients/KodiSend/kodi-send.py')
-rwxr-xr-x | tools/EventClients/Clients/KodiSend/kodi-send.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |