classification
Title: Remove depreciated logging.warn() method
Type: enhancement Stage: patch review
Components: Library (Lib) Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Harry-Lees, jack__d, vinay.sajip
Priority: normal Keywords: patch

Created on 2021-07-01 08:49 by Harry-Lees, last changed 2021-07-01 17:23 by jack__d.

Pull Requests
URL Status Linked Edit
PR 26982 closed jack__d, 2021-07-01 17:18
Messages (2)
msg396813 - (view) Author: Harry (Harry-Lees) * Date: 2021-07-01 08:49
The logging.warn() method as an alias for logging.warning() is a mysterious function in the logging module, as far as I can tell it was depreciated the minute it was added, originally only added for backwards compatibility.

Up until 3.3 it was undocumented, and after that it was Depreciated and was set to be removed in 3.4 (https://bugs.python.org/issue13235). At this point, I believe this function only serves to create confusion as an obscure alternative to logging.warning() and should probably be removed in 3.11.
msg396820 - (view) Author: Jack DeVries (jack__d) * Date: 2021-07-01 17:23
I'm not sure if there will be interest in merging this PR since it hasn't happened in all this time, but then again we've been emitting deprecation warnings from these functions and methods for a *decade* now.

If the decision at this point is still not to move forward with removal, we should just remove the deprecation warnings and document it as a supported and bona-fide alias. Should that be the case, I'll close the PR I just created and get started with that work instead.
History
Date User Action Args
2021-07-01 17:23:37jack__dsetmessages: + msg396820
2021-07-01 17:18:36jack__dsetkeywords: + patch
nosy: + jack__d

pull_requests: + pull_request25544
stage: patch review
2021-07-01 15:16:23serhiy.storchakasetnosy: + vinay.sajip
2021-07-01 08:49:52Harry-Leescreate