Skip to content

gh-133604: remove deprecated java_ver function #133888

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

Merged
merged 14 commits into from
May 16, 2025

Conversation

makridenko
Copy link
Contributor

@makridenko makridenko commented May 11, 2025

@python-cla-bot
Copy link

python-cla-bot bot commented May 11, 2025

All commit authors signed the Contributor License Agreement.

CLA signed

@bedevere-app
Copy link

bedevere-app bot commented May 11, 2025

Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool.

If this change has little impact on Python users, wait for a maintainer to apply the skip news label instead.

platform
--------

* The deprecated :func:`!platform.java_ver` function.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The deprecated :func:`!platform.java_ver` function.
* Removed the deprecated :func:`!platform.java_ver` function.

To save Benedikt copy-editing it later. (See line 133)

You can also link this pr. (See line 134 as an example)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StanFromIreland thank you! done

Lib/platform.py Outdated
@@ -31,6 +31,7 @@
#
# <see CVS and SVN checkin messages for history>
#
# 1.1.0 - removed deprecated java_ver()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not noteworthy enough IMO. These are rarely updated, but it is up to @malemburg in the end.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add to that list anymore. The checkin messages provide enough history.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to change # <see CVS and SVN checkin messages for history> to # <see checkin messages for history>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@malemburg thank you! done

Comment on lines 127 to 128
* Removed the deprecated :func:`!platform.java_ver` function.
(Contributed by Alexey Makridenko in :gh:`133888`.)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Removed the deprecated :func:`!platform.java_ver` function.
(Contributed by Alexey Makridenko in :gh:`133888`.)
* Removed the :func:`!platform.java_ver` function,
which was deprecated since Python 3.13.
(Contributed by Alexey Makridenko in :gh:`133888`.)

The link should be the issue, not the PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! fixed it

@@ -0,0 +1 @@
Remove deprecated function :func:`!platform.java_ver`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Remove deprecated function :func:`!platform.java_ver`.
Remove :func:`!platform.java_ver` which was deprecated since Python 3.13.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you! fixed it

@makridenko makridenko requested a review from picnixz May 16, 2025 11:48
Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry to give you contradictory comments :') I didn't read the previous reviews, my bad!

Copy link
Member

@malemburg malemburg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though I haven't actually run the test suite with these changes, or built the docs.

Note: The PR branch needs to be rebased before it can be merged.

@malemburg
Copy link
Member

Hmm, apparently, Github changed its mind about the need to rebase.

@malemburg
Copy link
Member

@StanFromIreland Do want to review again ? Otherwise, I'll merge the PR soon.

@malemburg malemburg merged commit 7a4a6cf into python:main May 16, 2025
39 checks passed
@malemburg
Copy link
Member

Thanks, @makridenko, for your work on this.

@StanFromIreland
Copy link
Contributor

Apologies I was unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants