** Description changed: + [Impact] + * Every time you use `s3cmd` you get a SyntaxWarning due to Python 3.8 changes. + * While this has no functional impact on functions, it pollutes output in a way that is quite annoying. + + [Test Case] + * Install s3cmd + * Run any s3cmd command, even `s3cmd --help`. + * Fixed / patched version will not trigger this error + + [Regression Potential] + + Extremely low risk of regression. We are simply replacing `is` with an + equality operator per Python 3.8 in two places. + + [Additional Information] + + Originally fixed upstream via + https://github.com/s3tools/s3cmd/commit/92a9c79b5a505d66ff25b661ef9c5191d9985252 + + + [Original Description] + Everytime I use s3cmd I get this warning /usr/bin/s3cmd:308: SyntaxWarning: "is" with a literal. Did you mean "=="? - if response["status"] is 200: + if response["status"] is 200: /usr/bin/s3cmd:310: SyntaxWarning: "is" with a literal. Did you mean "=="? - elif response["status"] is 204: + elif response["status"] is 204: Issue was reported here https://github.com/s3tools/s3cmd/issues/1055 and seems to be solved in version 2.1.0
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1874651 Title: SyntaxWaning on bad equality check To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/s3cmd/+bug/1874651/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
