From cc1e78ccdfea5783c449b006c4e9cadc713cd459 Mon Sep 17 00:00:00 2001 From: panjing <599194993@qq.com> Date: Tue, 7 Apr 2020 13:59:27 +0800 Subject: [PATCH] Remove unused packages --- src/PIL/IcnsImagePlugin.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/PIL/IcnsImagePlugin.py b/src/PIL/IcnsImagePlugin.py index ce317f12c..4edf8759e 100644 --- a/src/PIL/IcnsImagePlugin.py +++ b/src/PIL/IcnsImagePlugin.py @@ -19,11 +19,8 @@ import io import os -import shutil import struct -import subprocess import sys -import tempfile from PIL import Image, ImageFile, PngImagePlugin from PIL._binary import i8 @@ -363,7 +360,6 @@ def _save(im, fp, filename): Image.register_open(IcnsImageFile.format, IcnsImageFile, lambda x: x[:4] == b"icns") Image.register_extension(IcnsImageFile.format, ".icns") -# if sys.platform == "darwin": Image.register_save(IcnsImageFile.format, _save) Image.register_mime(IcnsImageFile.format, "image/icns")