[issue13539] Return value missing in calendar.TimeEncoding.__enter__

psam report at bugs.python.org
Mon Dec 12 14:13:37 CET 2011


psam <pk.samson at gmail.com> added the comment:

The problem was detected in a Django project, as the template engine was not able to support the original encoding.
I don't have a real test code snippet, but you may try something like:

isinstance(calendar.LocaleTextCalendar(locale='').formatmonth(2011,12),unicode)

Note: for Windows, locale='' or locale='fra_FRA' are ok, not locale='fr_FR' or no specified locale.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13539>
_______________________________________


More information about the Python-bugs-list mailing list