summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcemysce <13400533+cemysce@users.noreply.github.com>2022-11-28 18:25:03 (GMT)
committerGitHub <noreply@github.com>2022-11-28 18:25:03 (GMT)
commit1d1bb95abdcafe92c771fb3dc4722351b032cc24 (patch)
treee112cd97bbb1a44f9d2fbccc8791b2f76a2a9b5e
parentca3e611b1f620eabb657ef08a95d5f5f554ea773 (diff)
downloadcpython-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
-rw-r--r--Lib/logging/__init__.py2
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