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

Éric Araujo report at bugs.python.org
Sat Dec 10 17:16:42 CET 2011


Éric Araujo <merwok at 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 we’ll be able to add it to the test suite before fixing the bug.

----------
nosy: +eric.araujo
stage:  -> test needed
title: A return is missing in TimeEncoding of calendar.py -> Return value missing in calendar.TimeEncoding.__enter__
versions: +Python 3.2, Python 3.3

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


More information about the Python-bugs-list mailing list