summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2019-11-17 10:55:15 -0800
committerJens Carl <j.carl43@gmx.de>2019-11-24 07:41:58 +0100
commit4dc85b98d7d84ac0d50f6f64833b667fb48236c7 (patch)
treee7ddc4bd9310c281989696ad286e13941a4fe83b /bin
parenta81489978cb96d819044be054f7ceabc4f8eccb2 (diff)
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.carl43@gmx.de>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update/create_partial_update.py2
1 files changed, 1 insertions, 1 deletions
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")