-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker: Update default.py to fix Python BPO - syntax warning for "is" with a literal #4573
Conversation
Please add "Docker: " to commit message and PR title. |
Thanks, but I did forget the administrative part. Please increase PKG_REV in package.mk and update changelog.txt. For including #4557 please add a line like |
Hi @mglae think I covered all required now. Thanks for the help. |
You may consider to log your own change too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completed update and review based on feedback. Code change and supporting files matched.
Fix "docker run --init". |
Hi @mglae - do I need to perform any other steps to complete the pull? I can’t see where to actually create the change record? |
Please squash changes to a single commit and update the commit messsage (not the PR title) to follow house style, e.g.
|
All done ready for commit now :-) @chewitt - was definitely a learning exercise on squashing as a single commit. Was good to learn something new in the lockdown. |
Docker: Update default.py to fix Python BPO - syntax warning for "is" with a literal
Error in Kodi nightly 1002. This is the fix.
default.py:188: SyntaxWarning: "is" with a literal. Did you mean "=="?
if addon.getSetting('notifications') is '0': # default
default.py:203: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif addon.getSetting('notifications') is '1': # all
default.py:217: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif addon.getSetting('notifications') is '2': # none
default.py:220: SyntaxWarning: "is" with a literal. Did you mean "=="?
elif addon.getSetting('notifications') is '3': # custom
default.py:237: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if message is not '':
Had raised as kodi bug: xbmc/xbmc#18501
Python BPO that introduced the behaviour https://bugs.python.org/issue34850