Skip to content

Commit ef5a72b

Browse files
committed
Deprecate with a 3rd party module compatible with earlier Python version instead of a Python 3.13-dependent solution
1 parent 4c394c1 commit ef5a72b

File tree

3 files changed

+2171
-1556
lines changed

3 files changed

+2171
-1556
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ classifiers = [
2929
"Topic :: Software Development :: Libraries :: Application Frameworks",
3030
]
3131

32-
dependencies = ["python-dotenv>=0.21.1"]
32+
dependencies = [
33+
"deprecated>=1.3.1",
34+
"python-dotenv>=0.21.1",
35+
]
3336
optional-dependencies = { compat = ["six>=1.17.0"] }
3437

3538
[dependency-groups]

splunklib/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@
6565
from datetime import datetime, timedelta
6666
from time import sleep
6767
from urllib import parse
68-
from warnings import deprecated
68+
69+
from deprecated import deprecated
6970

7071
from . import data
7172
from .binding import (
@@ -2007,8 +2008,8 @@ def clear_password(self):
20072008

20082009
@property
20092010
@deprecated(
2010-
"To improve security, this field now returns an empty \
2011-
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.",
20122013
)
20132014
def encrypted_password(self):
20142015
return self.content.get("encr_password")

0 commit comments

Comments
 (0)