fix(timezone/commands): Drop obsolete 'locale' definitions #12995
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.
TL;DR
During a deeper analysis of #12974 (why there are
locale
definitions in commands), I noticed that they are copy-paste leftovers and were never used. They can be removed.Full story
I was trying to identify the reason for
locale
in those many commands which has never been used.Unfortunately, I wasn't able to fully find full context
But I have at least partial results
Summary
It was implemented as part of
dojo/management/commands/run_scan.py
and copy-pasted to many other commands wherelocale
was not necessary.dojo/management/commands/run_scan.py
is not there anymore, andlocale
is not needed in any of commands.