[issue34787] imghdr raise TypeError for PNG

lorenzogotuned report at bugs.python.org
Mon Sep 24 10:21:07 EDT 2018


New submission from lorenzogotuned <tunedconsulting at gmail.com>:

Found on Python 3.6

This line https://github.com/python/cpython/blob/master/Lib/imghdr.py#L45
always raises`TypeError`as `startswith` does not accept bytes.

----------
messages: 326237
nosy: lorenzogotuned
priority: normal
severity: normal
status: open
title: imghdr raise TypeError for PNG
type: crash

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34787>
_______________________________________


More information about the Python-bugs-list mailing list