Skip to content

Commit ca8b571

Browse files
committed
Update logging-cookbook to prefixmatch
1 parent 2fd6236 commit ca8b571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/logging-cookbook.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3877,7 +3877,7 @@ subclassed handler which looks something like this::
38773877
def format(self, record):
38783878
version = 1
38793879
asctime = dt.datetime.fromtimestamp(record.created).isoformat()
3880-
m = self.tz_offset.match(time.strftime('%z'))
3880+
m = self.tz_offset.prefixmatch(time.strftime('%z'))
38813881
has_offset = False
38823882
if m and time.timezone:
38833883
hrs, mins = m.groups()

0 commit comments

Comments
 (0)