[New-bugs-announce] [issue42226] imghdr.what is missing docstring, has a logic error, and is overly complex
Jeremy Howard
report at bugs.python.org
Sun Nov 1 00:31:45 EDT 2020
New submission from Jeremy Howard <j at zz.lc>:
imghdr.what does not set f if h is passed, but still passed f to tests functions. None of the tests functions use it - they would not be able to anyway since it is not always set.
imghdr.what is missing a docstring.
imghdr.what has a complex highly nest structure with multiple return paths which makes the logic hard to follow.
----------
components: Library (Lib)
messages: 380114
nosy: jph00
priority: normal
severity: normal
status: open
title: imghdr.what is missing docstring, has a logic error, and is overly complex
type: behavior
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42226>
_______________________________________
More information about the New-bugs-announce
mailing list