]> granicus.if.org Git - python/commitdiff
Issue #11330: Updated tests for correct asctime handling.
authorVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 16:06:02 +0000 (16:06 +0000)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>
Sat, 26 Feb 2011 16:06:02 +0000 (16:06 +0000)
Lib/logging/__init__.py
Lib/test/test_logging.py

index da12a0eb109bdb78d511f45de095b2ba6a6378c9..d9ac7d9c131f3893f5f3919f0a272170079b03f6 100644 (file)
@@ -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
index 85c5312053cf280ae4e82ac59f30c46f9873a661..b29d4005eebbca8944b9a90a8bfbd022eb5ba4d0 100644 (file)
@@ -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