Skip to content

Commit 9badb9a

Browse files
tirkarthiamysutedja
authored andcommitted
Fix SyntaxWarning over comparison of literals using is
1 parent b8f24af commit 9badb9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ def delete(self, username, realm=None):
18721872
name = UrlEncoded(realm, encode_slash=True) + ":" + UrlEncoded(username, encode_slash=True)
18731873

18741874
# Append the : expected at the end of the name
1875-
if name[-1] is not ":":
1875+
if name[-1] != ":":
18761876
name = name + ":"
18771877
return Collection.delete(self, name)
18781878

0 commit comments

Comments
 (0)