From: Vinay Sajip Date: Sat, 26 Feb 2011 16:06:02 +0000 (+0000) Subject: Issue #11330: Updated tests for correct asctime handling. X-Git-Tag: v3.3.0a1~3039 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=399fc14609facd355720dbfa0310ed71e24faedd;p=python Issue #11330: Updated tests for correct asctime handling. --- diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index da12a0eb10..d9ac7d9c13 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -383,7 +383,7 @@ class StrFormatStyle(PercentStyle): class StringTemplateStyle(PercentStyle): default_format = '${message}' asctime_format = '${asctime}' - asctime_search = '${asctime' + asctime_search = '${asctime}' def __init__(self, fmt): self._fmt = fmt or self.default_format diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py index 85c5312053..b29d4005ee 100644 --- a/Lib/test/test_logging.py +++ b/Lib/test/test_logging.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# Copyright 2001-2010 by Vinay Sajip. All Rights Reserved. +# Copyright 2001-2011 by Vinay Sajip. All Rights Reserved. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, @@ -18,7 +18,7 @@ """Test harness for the logging module. Run all tests. -Copyright (C) 2001-2010 Vinay Sajip. All Rights Reserved. +Copyright (C) 2001-2011 Vinay Sajip. All Rights Reserved. """ import logging