-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
Closed
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-featureA feature request or enhancementA feature request or enhancement
Description
Feature or enhancement
Proposal:
DictConfigurator.configure_formatter()
and configure_handler()
contain workarounds for old configurations
Lines 670 to 676 in bcccf1f
#Name of parameter changed from fmt to format. | |
#Retry with old name. | |
#This is so that code can be used with older Python versions | |
#(e.g. by Django) | |
config['fmt'] = config.pop('format') | |
config['()'] = factory | |
result = self.configure_custom(config) |
Lines 844 to 851 in bcccf1f
if "'stream'" not in str(te): | |
raise | |
#The argument name changed from strm to stream | |
#Retry with old name. | |
#This is so that code can be used with older Python versions | |
#(e.g. by Django) | |
kwargs['strm'] = kwargs.pop('stream') | |
result = factory(**kwargs) |
Django doesn't use fmt
and strm
for many years. I think both can be deprecated and removed.
I'd like to prepare a patch, if accepted.
Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
Links to previous discussion of this feature:
No response
Linked PRs
Metadata
Metadata
Assignees
Labels
stdlibPython modules in the Lib dirPython modules in the Lib dirtype-featureA feature request or enhancementA feature request or enhancement
Projects
Status
Done