Repository navigation
Conversation
Every construction of rope.base.project.Project emitted a DeprecationWarning "Delete once deprecated functions are gone", even though _init_source_folders is a private, live method: it is the only reader of the `source_folders` preference and fills _custom_source_folders for Project.get_source_folders(). The marker originated in cac5786 (2014), where it decorated the old PyCore._init_source_folders, which only existed to serve the then-deprecated PyCore.get_source_folders and was meant to be deleted together with it. In 2ee332a the PyCore copy was removed and PyCore.get_source_folders made to delegate to Project, but the decorator was moved onto the Project replacement instead of being dropped with the code it described. Its condition has thus been met since 2014; remove the decorator and keep the method.
mcepl
added a commit
that referenced
this pull request
Nov 30, 2026
Describe the removal of the stray DeprecationWarning emitted on every Project() construction, so it is collected into CHANGELOG.md at the next release.
Describe the removal of the stray DeprecationWarning emitted on every Project() construction, so it is collected into CHANGELOG.md at the next release.
mcepl
force-pushed
the
mcepl/deprecated_tests
branch
from
November 30, 2026 10:27
5927dab to
aada3ee
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## changelog-news-fragments #987 +/- ##
============================================================
- Coverage 95.46% 95.46% -0.01%
============================================================
Files 134 134
Lines 26946 26945 -1
============================================================
- Hits 25723 25722 -1
Misses 1223 1223 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Every
rope.base.project.Project()construction emitsbecause the private
Project._init_source_folderscarries@utils.deprecated(...). The method is live code: it is the onlyreader of the
source_folderspreference and fills_custom_source_foldersforProject.get_source_folders().History: in cac5786 (2014) the decorator was put on the old
PyCore._init_source_folders, which only served the then-deprecatedPyCore.get_source_foldersand was meant to be deleted togetherwith it. In 2ee332a that PyCore copy was removed (the PyCore wrapper
now delegates to
Project), but the decorator was moved onto theProjectreplacement instead of being dropped. Its condition hastherefore been met since 2014.
This PR just removes the decorator; behaviour is otherwise unchanged.
Removing the remaining public
@utils.deprecatedwrappers (pycore,taskhandle, change_signature, …) is a separate API-breaking change
and intentionally not part of this PR.
Stacked on #985 (changelog fragments); please merge that first.
Checklist (delete if not relevant):
changelog.d/(seechangelog.d/README.md)