summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-11-28 19:17:31 (GMT)
committerGitHub <noreply@github.com>2022-11-28 19:17:31 (GMT)
commit1b43fa6890aea98e5108a6aed560ceee348b0a07 (patch)
tree95f4f540db18b8848ff58696b6c2e94413b7e036
parenta8517978631535be8b42636922c4bd249d9f8c68 (diff)
downloadcpython-1b43fa6890aea98e5108a6aed560ceee348b0a07.zip
cpython-1b43fa6890aea98e5108a6aed560ceee348b0a07.tar.gz
cpython-1b43fa6890aea98e5108a6aed560ceee348b0a07.tar.bz2
[3.10] gh-99811: Use correct variable to search for time in format string (GH-99812) (GH-99852)
(cherry picked from commit 1d1bb95abdcafe92c771fb3dc4722351b032cc24) Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
-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 09810bd..d1d4333 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -487,7 +487,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