Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings #317

Merged
merged 2 commits into from
Sep 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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