From 62b2bdf909fb5c76513be5bc3aecd25d915d8949 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 4 Jan 2018 14:56:18 +1100 Subject: [PATCH] Removed unused imports --- Tests/test_image_access.py | 1 - Tests/test_lib_pack.py | 4 ++-- Tests/test_uploader.py | 2 -- src/PIL/SgiImagePlugin.py | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Tests/test_image_access.py b/Tests/test_image_access.py index d0fcea1d4..464e0a208 100644 --- a/Tests/test_image_access.py +++ b/Tests/test_image_access.py @@ -258,7 +258,6 @@ class TestEmbeddable(unittest.TestCase): def test_embeddable(self): import subprocess import ctypes - import setuptools from distutils import ccompiler, sysconfig with open('embed_pil.c', 'w') as fh: diff --git a/Tests/test_lib_pack.py b/Tests/test_lib_pack.py index c5eb2686c..771c5d5c8 100644 --- a/Tests/test_lib_pack.py +++ b/Tests/test_lib_pack.py @@ -1,6 +1,6 @@ import sys -from helper import unittest, PillowTestCase, py3 +from helper import unittest, PillowTestCase from PIL import Image @@ -223,7 +223,7 @@ class TestLibUnpack(PillowTestCase): self.assert_unpack("L", "L;R", 1, 128, 64, 192, 32) self.assert_unpack("L", "L;16", 2, 2, 4, 6, 8) self.assert_unpack("L", "L;16B", 2, 1, 3, 5, 7) - self.assert_unpack("L", "L;16", b'\x00\xc6\x00\xaf', 198, 175) + self.assert_unpack("L", "L;16", b'\x00\xc6\x00\xaf', 198, 175) self.assert_unpack("L", "L;16B", b'\xc6\x00\xaf\x00', 198, 175) diff --git a/Tests/test_uploader.py b/Tests/test_uploader.py index b52ea10f6..9d1f164c2 100644 --- a/Tests/test_uploader.py +++ b/Tests/test_uploader.py @@ -1,7 +1,5 @@ from helper import unittest, PillowTestCase, hopper -from PIL import Image - class TestUploader(PillowTestCase): def check_upload_equal(self): diff --git a/src/PIL/SgiImagePlugin.py b/src/PIL/SgiImagePlugin.py index 768f75588..7966491d2 100644 --- a/src/PIL/SgiImagePlugin.py +++ b/src/PIL/SgiImagePlugin.py @@ -23,10 +23,9 @@ from . import Image, ImageFile -from ._binary import i8, o8, i16be as i16, o16be as o16 +from ._binary import i8, o8, i16be as i16 import struct import os -import sys __version__ = "0.3"