[New-bugs-announce] [issue13539] A return is missing in TimeEncoding of calendar.py
psam
report at bugs.python.org
Tue Dec 6 14:07:51 CET 2011
New submission from psam <pk.samson at gmail.com>:
The v2.6 of __enter__() of TimeEncoding has been fixed in v2.7 in relation with the return of setlocale(), but for no apparent reason, its necessary returned value is no more there.
Patch:
def __enter__(self):
self.oldlocale = _locale.getlocale(_locale.LC_TIME)
_locale.setlocale(_locale.LC_TIME, self.locale)
+ return _locale.getlocale(_locale.LC_TIME)[1]
----------
components: Library (Lib)
messages: 148915
nosy: psam
priority: normal
severity: normal
status: open
title: A return is missing in TimeEncoding of calendar.py
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13539>
_______________________________________
More information about the New-bugs-announce
mailing list