Skip to content

Commit ef5e40e

Browse files
authored
Merge pull request #317 from tirkarthi/fix-warnings
Fix deprecation warnings
2 parents b8f24af + 98ab7bb commit ef5e40e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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

splunklib/searchcommands/internals.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def set_binary_mode(fh):
7575

7676

7777
class CommandLineParser(object):
78-
""" Parses the arguments to a search command.
78+
r""" Parses the arguments to a search command.
7979
8080
A search command line is described by the following syntax.
8181

tests/testlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def app_collection_installed(self):
184184
return collectionName in self.service.apps
185185

186186
def pathInApp(self, appName, pathComponents):
187-
"""Return a path to *pathComponents* in *appName*.
187+
r"""Return a path to *pathComponents* in *appName*.
188188
189189
`pathInApp` is used to refer to files in applications installed with
190190
`install_app_from_collection`. For example, the app `file_to_upload` in

0 commit comments

Comments
 (0)