diff --git a/PIL/FontFile.py b/PIL/FontFile.py index 26ddff0ac..fa984fa72 100644 --- a/PIL/FontFile.py +++ b/PIL/FontFile.py @@ -17,11 +17,6 @@ import os from PIL import Image, _binary -try: - import zlib -except ImportError: - zlib = None - WIDTH = 800 diff --git a/Scripts/pilfile.py b/Scripts/pilfile.py index b4fe4942c..b954114ac 100644 --- a/Scripts/pilfile.py +++ b/Scripts/pilfile.py @@ -19,7 +19,6 @@ from __future__ import print_function -import site import getopt import glob import sys diff --git a/Tests/check_jpeg_leaks.py b/Tests/check_jpeg_leaks.py index 290bac4d8..b46643a55 100644 --- a/Tests/check_jpeg_leaks.py +++ b/Tests/check_jpeg_leaks.py @@ -1,5 +1,4 @@ from helper import unittest, PillowTestCase, hopper -from PIL import Image from io import BytesIO import sys diff --git a/Tests/test_image.py b/Tests/test_image.py index de43b010e..0b84de630 100644 --- a/Tests/test_image.py +++ b/Tests/test_image.py @@ -1,7 +1,6 @@ from helper import unittest, PillowTestCase, hopper from PIL import Image -import sys class TestImage(PillowTestCase):