[gjs: 1/5] build: Use '!=' instead of 'is not' to compare string
- From: Philip Chimento <pchimento src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gjs: 1/5] build: Use '!=' instead of 'is not' to compare string
- Date: Tue, 31 Mar 2020 04:37:37 +0000 (UTC)
commit 7764f43da12d18fa48e00f121dee2b549d4f3784
Author: Robert Mader <robert mader posteo de>
Date: Sun Mar 29 15:51:47 2020 +0200
build: Use '!=' instead of 'is not' to compare string
Fixes a warning during install with newer python versions:
```
SyntaxWarning: "is not" with a literal. Did you mean "!="?
```
build/symlink-gjs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/build/symlink-gjs.py b/build/symlink-gjs.py
index 0802669b..1a001fb2 100644
--- a/build/symlink-gjs.py
+++ b/build/symlink-gjs.py
@@ -12,7 +12,7 @@ install_prefix = os.environ.get('MESON_INSTALL_PREFIX')
bindir = sys.argv[1]
if destdir is not None:
# os.path.join() doesn't concat paths if one of them is absolute
- if install_prefix[0] == '/' and os.name is not 'nt':
+ if install_prefix[0] == '/' and os.name != 'nt':
installed_bin_dir = os.path.join(destdir, install_prefix[1:], bindir)
else:
installed_bin_dir = os.path.join(destdir, install_prefix, bindir)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]