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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logging.StringTemplateStyle's usesTime method using wrong variable to search for asctime #99811
Labels
type-bug
An unexpected behavior, bug, or error
Comments
vsajip
pushed a commit
that referenced
this issue
Nov 28, 2022
…H-99812) Use correct variable to search for asctime
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 28, 2022
…ing (pythonGH-99812) Use correct variable to search for asctime (cherry picked from commit 1d1bb95) Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 28, 2022
…ing (pythonGH-99812) Use correct variable to search for asctime (cherry picked from commit 1d1bb95) Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
vsajip
pushed a commit
that referenced
this issue
Nov 28, 2022
vsajip
pushed a commit
that referenced
this issue
Nov 28, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cemysce commentedNov 27, 2022
•
edited by bedevere-bot
Bug report
See
usesTimemethod ofStringTemplateStyleclass inloggingmodule. It's passingself.asctime_formattofmt.findbut I believe it should be passingself.asctime_search. The two variables have the same value so it doesn't currently result in broken behavior, but this is a latent bug that could reveal itself if either variable's value changes. I've got a PR ready, I'll submit it shortly after this.Linked PRs
The text was updated successfully, but these errors were encountered: