mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Removed unreachable code
This commit is contained in:
parent
0c600f1d88
commit
8828080868
|
@ -154,9 +154,6 @@ def _parse_jp2_header(fp):
|
|||
if reader.read_fields(">4s")[0] == b"jpx ":
|
||||
mimetype = "image/jpx"
|
||||
|
||||
if header is None:
|
||||
raise SyntaxError("Could not find JP2 header")
|
||||
|
||||
size = None
|
||||
mode = None
|
||||
bpc = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user