Skip to content

Commit

Permalink
Merge pull request splunk#317 from tirkarthi/fix-warnings
Browse files Browse the repository at this point in the history
Fix deprecation warnings
  • Loading branch information
amysutedja authored Sep 10, 2020
2 parents b8f24af + 98ab7bb commit ef5e40e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion splunklib/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ def delete(self, username, realm=None):
name = UrlEncoded(realm, encode_slash=True) + ":" + UrlEncoded(username, encode_slash=True)

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

Expand Down
2 changes: 1 addition & 1 deletion splunklib/searchcommands/internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def set_binary_mode(fh):


class CommandLineParser(object):
""" Parses the arguments to a search command.
r""" Parses the arguments to a search command.
A search command line is described by the following syntax.
Expand Down
2 changes: 1 addition & 1 deletion tests/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def app_collection_installed(self):
return collectionName in self.service.apps

def pathInApp(self, appName, pathComponents):
"""Return a path to *pathComponents* in *appName*.
r"""Return a path to *pathComponents* in *appName*.
`pathInApp` is used to refer to files in applications installed with
`install_app_from_collection`. For example, the app `file_to_upload` in
Expand Down

0 comments on commit ef5e40e

Please sign in to comment.