Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
enum: remove unused function#132044
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
enum: remove unused function#132044
Uh oh!
There was an error while loading.Please reload this page.
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
hugovk left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
History:_dedent was added in#30582 (then briefly reverted in#30632 and re-added in#30637) in v3.11.0a5.
Then its use was removed in#94188 in v3.12.0a1 but the function not removed.
I think it's safe to remove the function: it wasn't documented, was underscore prefixed, is very similar totextwrap.dedent() which should be the first choice, and I don't find any use of_dedent on GitHub code search.
e2b35ee intopython:mainUh oh!
There was an error while loading.Please reload this page.
_dedentin enum was added in this PR.https://github.com/python/cpython/pull/30582/files#diff-e5dd6e444e4e6c2cdeb8edf271d057f9da52f7b406dcd8b655dc396fb013bd03
But it is not used now.