mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-116349: Deprecate platform.java_ver
function (#116471)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
4d952737e6
commit
0b647141d5
5 changed files with 26 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue