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

2013-01-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - duplicate stage: test needed - committed/rejected status: open - closed superseder: - calendar throws UnicodeEncodeError when locale is specified ___ Python tracker

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

2013-01-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue17049. This is not a theoretical bug. -- nosy: +serhiy.storchaka versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13539

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

2013-01-27 Thread Éric Araujo
Éric Araujo added the comment: Then you can close one bug as duplicate and commit a fix for the other :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13539 ___

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

2011-12-12 Thread psam
psam pk.sam...@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:

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

2011-12-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13539 ___ ___

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

2011-12-12 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t know this module well, so I’m adding Georg, who last changed that method, and other people from #10092 to the nosy list. -- nosy: +JJeffries, Retro, christian.heimes, georg.brandl, ixokai, r.david.murray, tim.golden, twouters

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

2011-12-10 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Good catch. The code doesn’t break because there is a check for None later on (certainly because getlocale may return None, but here __enter__ always returns None). How did you find this? If you have a code snippet that reproduces the bug