[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread akira

New submission from akira <4kir4...@gmail.com>:

Since Python 3.2 logging package doesn't support formatting flags for the 
`asctime` keyword, but the documentation uses them. For example in 
Doc/library/logging.rst:

  FORMAT = '%(asctime)-15s %(clientip)s %(user)-8s %(message)s'

should be replaced by:

  FORMAT = '%(asctime)s %(clientip)s %(user)-8s %(message)s'

The attached file 'doc-logging-asctime-r88640.patch' contains necessary changes.

An alternative solution would be to fix the logging package to restore the 
support.

--
assignee: docs@python
components: Documentation
files: doc-logging-asctime-r88640.patch
keywords: patch
messages: 129524
nosy: akira, docs@python
priority: normal
severity: normal
status: open
title: logging doesn't support format flags for asctime keyword, but the docs 
use them
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file20906/doc-logging-asctime-r88640.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
assignee: docs@python -> vinay.sajip
nosy: +vinay.sajip

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip

Vinay Sajip  added the comment:

Fix checked into py3k and release32-maint (r88644). Support was reinstated - 
the docs weren't changed.

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Éric Araujo

Éric Araujo  added the comment:

Shouldn’t there be a regression test for this?

--
components: +Library (Lib) -Documentation
nosy: +eric.araujo -docs@python

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip

Vinay Sajip  added the comment:

There should, and I'm looking at some additional tests suggested for inclusion 
in #11332. I'll mark the issue as pending to remind me to ensure that the test 
gets added soon.

--
status: closed -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11330] logging doesn't support format flags for asctime keyword, but the docs use them

2011-02-26 Thread Vinay Sajip

Vinay Sajip  added the comment:

Regression test added to py3k and release32-maint (r88654). I just had to 
modify an existing test case.

--
status: pending -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com