New submission from Jeremy Howard <j...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue42226>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to