bin/update/create_partial_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4dc85b98d7d84ac0d50f6f64833b667fb48236c7 Author: Jens Carl <j.car...@gmx.de> AuthorDate: Sun Nov 17 10:55:15 2019 -0800 Commit: Jens Carl <j.car...@gmx.de> CommitDate: Sun Nov 24 07:41:58 2019 +0100 Fix 'is' operator for comparison The 'is' operator should not be used for comparison on some types of literals. In CPython this works by accident and CPython 3.8 introduced a SyntaxWarning (see https://bugs.python.org/issue34850). Change-Id: I5cb7470132b26d87848c2bdc382b05477eb56afb Reviewed-on: https://gerrit.libreoffice.org/83032 Tested-by: Jenkins Reviewed-by: Jens Carl <j.car...@gmx.de> diff --git a/bin/update/create_partial_update.py b/bin/update/create_partial_update.py index 28e6cf510c42..9412bcd6e962 100755 --- a/bin/update/create_partial_update.py +++ b/bin/update/create_partial_update.py @@ -58,7 +58,7 @@ def download_mar_for_update_channel_and_platform(config, platform, temp_dir): base_url = config.server_url + "update/partial-targets/1/" url = base_url + platform + "/" + config.channel r = requests.get(url) - if r.status_code is not 200: + if r.status_code != 200: print(r.content) raise Exception("download failed") _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits