mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06: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 ":
|
if reader.read_fields(">4s")[0] == b"jpx ":
|
||||||
mimetype = "image/jpx"
|
mimetype = "image/jpx"
|
||||||
|
|
||||||
if header is None:
|
|
||||||
raise SyntaxError("Could not find JP2 header")
|
|
||||||
|
|
||||||
size = None
|
size = None
|
||||||
mode = None
|
mode = None
|
||||||
bpc = None
|
bpc = None
|
||||||
|
|
Loading…
Reference in New Issue
Block a user