Skip to content

Commit 2f8e351

Browse files
python linter: syntax "not in" tests/utils/gfid-access.py
This series aim to reduce the python linter build logs. This commit changes a syntax error for checking when checking for membership with "for not x in group" to "for x not in group". Signed-off-by: Thales Antunes de Oliveira Barretto <[email protected]> # tests/utils/gfid-access.py | 2 +- # 1 file changed, 1 insertion(+), 1 deletion(-)
1 parent c79f90d commit 2f8e351

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/utils/gfid-access.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def entry_pack_symlink(gf, bn, lnk, mo, uid, gid):
134134
Xattr.lsetxattr(pargfid, 'glusterfs.gfid.newfile', blob)
135135
except OSError:
136136
ex = sys.exc_info()[1]
137-
if not ex.errno in [EEXIST]:
137+
if ex.errno not in [EEXIST]:
138138
raise
139139
sys.exit(-1)
140140
print("File creation OK")

0 commit comments

Comments
 (0)