diff --git a/PIL/Image.py b/PIL/Image.py index 5ffa5b64b..d1d5c510e 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -2155,7 +2155,6 @@ def open(fp, mode="r"): factory, accept = OPEN[i] if not accept or accept(prefix): fp.seek(0) - # return factory(fp, filename) im = factory(fp, filename) _decompression_bomb_check(im.size) return im @@ -2171,7 +2170,6 @@ def open(fp, mode="r"): factory, accept = OPEN[i] if not accept or accept(prefix): fp.seek(0) - # return factory(fp, filename) im = factory(fp, filename) _decompression_bomb_check(im.size) return im