diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2024-03-08 08:14:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 08:14:17 (GMT) |
commit | 0b647141d587065c5b82bd658485adca8823a943 (patch) | |
tree | 293f7046e2611d69d7cfc6131205fe7047524d7a /Lib/platform.py | |
parent | 4d952737e62b833d6782e0180ee89088fe601317 (diff) | |
download | cpython-0b647141d587065c5b82bd658485adca8823a943.zip cpython-0b647141d587065c5b82bd658485adca8823a943.tar.gz cpython-0b647141d587065c5b82bd658485adca8823a943.tar.bz2 |
gh-116349: Deprecate `platform.java_ver` function (#116471)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Lib/platform.py')
-rwxr-xr-x | Lib/platform.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/platform.py b/Lib/platform.py index b564722..6764e0d 100755 --- a/Lib/platform.py +++ b/Lib/platform.py @@ -503,7 +503,7 @@ def mac_ver(release='', versioninfo=('', '', ''), machine=''): return release, versioninfo, machine def _java_getprop(name, default): - + """This private helper is deprecated in 3.13 and will be removed in 3.15""" from java.lang import System try: value = System.getProperty(name) @@ -525,6 +525,8 @@ def java_ver(release='', vendor='', vminfo=('', '', ''), osinfo=('', '', '')): given as parameters (which all default to ''). """ + import warnings + warnings._deprecated('java_ver', remove=(3, 15)) # Import the needed APIs try: import java.lang |