Skip to content

Commit 855147d

Browse files
committed
Go back to deprecation
1 parent 692a757 commit 855147d

File tree

3 files changed

+254
-1804
lines changed

3 files changed

+254
-1804
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ name = "splunk-sdk"
1111
dynamic = ["version"]
1212
description = "Splunk Software Development Kit for Python"
1313
readme = "README.md"
14-
requires-python = ">=3.7"
14+
requires-python = ">=3.9"
1515
license = { text = "Apache-2.0" }
1616
authors = [{ name = "Splunk, Inc.", email = "devinfo@splunk.com" }]
1717
keywords = ["splunk", "sdk"]
@@ -30,7 +30,7 @@ classifiers = [
3030
]
3131

3232
dependencies = [
33-
"deprecation>=2.1.0",
33+
"deprecated>=1.2.0",
3434
"python-dotenv>=0.21.1",
3535
]
3636
optional-dependencies = { compat = ["six>=1.17.0"] }

splunklib/client.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
from time import sleep
6767
from urllib import parse
6868

69-
from deprecation import deprecated
69+
from deprecated import deprecated
7070

7171
from . import data
7272
from .binding import (
@@ -2008,9 +2008,8 @@ def clear_password(self):
20082008

20092009
@property
20102010
@deprecated(
2011-
deprecated_in="2.2.0",
2012-
details="To improve security, this field now returns an empty \
2013-
string and will be removed from Splunk in a future release.",
2011+
version="2.2.0",
2012+
reason="To improve security, this field now returns an empty string and will be removed from Splunk in a future release.",
20142013
)
20152014
def encrypted_password(self):
20162015
return self.content.get("encr_password")

0 commit comments

Comments
 (0)