[Python-checkins] gh-99811: Use correct variable to search for time in format string (GH-99812)
vsajip
webhook-mailer at python.org
Mon Nov 28 13:25:09 EST 2022
https://github.com/python/cpython/commit/1d1bb95abdcafe92c771fb3dc4722351b032cc24
commit: 1d1bb95abdcafe92c771fb3dc4722351b032cc24
branch: main
author: cemysce <13400533+cemysce at users.noreply.github.com>
committer: vsajip <vinay_sajip at yahoo.co.uk>
date: 2022-11-28T18:25:03Z
summary:
gh-99811: Use correct variable to search for time in format string (GH-99812)
Use correct variable to search for asctime
files:
M Lib/logging/__init__.py
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index 86e1efe6e653..9241d73d0fd0 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -511,7 +511,7 @@ def __init__(self, *args, **kwargs):
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
More information about the Python-checkins
mailing list