diff options
author | cemysce <13400533+cemysce@users.noreply.github.com> | 2022-11-28 18:25:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 18:25:03 (GMT) |
commit | 1d1bb95abdcafe92c771fb3dc4722351b032cc24 (patch) | |
tree | e112cd97bbb1a44f9d2fbccc8791b2f76a2a9b5e /Lib/logging | |
parent | ca3e611b1f620eabb657ef08a95d5f5f554ea773 (diff) | |
download | cpython-1d1bb95abdcafe92c771fb3dc4722351b032cc24.zip cpython-1d1bb95abdcafe92c771fb3dc4722351b032cc24.tar.gz cpython-1d1bb95abdcafe92c771fb3dc4722351b032cc24.tar.bz2 |
gh-99811: Use correct variable to search for time in format string (GH-99812)
Use correct variable to search for asctime
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 86e1efe..9241d73 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -511,7 +511,7 @@ class StringTemplateStyle(PercentStyle): def usesTime(self): fmt = self._fmt - return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_format) >= 0 + return fmt.find('$asctime') >= 0 or fmt.find(self.asctime_search) >= 0 def validate(self): pattern = Template.pattern |