From 97a2d42dacdde77e50eba95ccfeb19d114ead9bc Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 7 Oct 2016 21:39:14 +1100 Subject: [PATCH 1/4] Removed unused print_function imports --- PIL/PcxImagePlugin.py | 2 -- PIL/PngImagePlugin.py | 2 -- PIL/PyAccess.py | 2 -- PIL/WalImageFile.py | 2 -- Tests/test_file_tiff.py | 1 - Tests/test_tiff_ifdrational.py | 2 -- 6 files changed, 11 deletions(-) diff --git a/PIL/PcxImagePlugin.py b/PIL/PcxImagePlugin.py index e3c008f4f..ef89a1907 100644 --- a/PIL/PcxImagePlugin.py +++ b/PIL/PcxImagePlugin.py @@ -25,8 +25,6 @@ # See the README file for information on usage and redistribution. # -from __future__ import print_function - import logging from . import Image, ImageFile, ImagePalette from ._binary import i8, i16le as i16, o8, o16le as o16 diff --git a/PIL/PngImagePlugin.py b/PIL/PngImagePlugin.py index dca8a456e..caa786b85 100644 --- a/PIL/PngImagePlugin.py +++ b/PIL/PngImagePlugin.py @@ -31,8 +31,6 @@ # See the README file for information on usage and redistribution. # -from __future__ import print_function - import logging import re import zlib diff --git a/PIL/PyAccess.py b/PIL/PyAccess.py index 8b67a8ea2..58d20ca38 100644 --- a/PIL/PyAccess.py +++ b/PIL/PyAccess.py @@ -20,8 +20,6 @@ # Access.c implementation. # -from __future__ import print_function - import logging import sys diff --git a/PIL/WalImageFile.py b/PIL/WalImageFile.py index a17238a5a..95bedbfaf 100644 --- a/PIL/WalImageFile.py +++ b/PIL/WalImageFile.py @@ -21,8 +21,6 @@ # http://www.flipcode.com/archives/Quake_2_BSP_File_Format.shtml # and has been tested with a few sample files found using google. -from __future__ import print_function - from . import Image from ._binary import i32le as i32 diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index bf19947a1..5f81f36b3 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -1,4 +1,3 @@ -from __future__ import print_function import logging from io import BytesIO import struct diff --git a/Tests/test_tiff_ifdrational.py b/Tests/test_tiff_ifdrational.py index ffd4f9eac..54f330ec3 100644 --- a/Tests/test_tiff_ifdrational.py +++ b/Tests/test_tiff_ifdrational.py @@ -1,5 +1,3 @@ -from __future__ import print_function - from helper import unittest, PillowTestCase, hopper from PIL import TiffImagePlugin, Image From 25fb149d5e995b56dd6ea5e5960fb51ed749fae6 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 7 Oct 2016 21:39:21 +1100 Subject: [PATCH 2/4] Removed unused docs import --- docs/conf.py | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/conf.py b/docs/conf.py index 33dd6a4f7..11956b03e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -14,7 +14,6 @@ import sys import os -import shlex # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the From c168f011113dde1358c10a89c0ac6baf07de6e40 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 7 Oct 2016 21:46:48 +1100 Subject: [PATCH 3/4] Removed imports used only by comments --- PIL/Image.py | 2 -- Tests/test_format_hsv.py | 1 - docs/conf.py | 3 --- 3 files changed, 6 deletions(-) diff --git a/PIL/Image.py b/PIL/Image.py index dbe916df1..b2e2344ac 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -24,8 +24,6 @@ # See the README file for information on usage and redistribution. # -from __future__ import print_function - from . import VERSION, PILLOW_VERSION, _plugins import logging diff --git a/Tests/test_format_hsv.py b/Tests/test_format_hsv.py index eea29b3f1..b965a854f 100644 --- a/Tests/test_format_hsv.py +++ b/Tests/test_format_hsv.py @@ -1,4 +1,3 @@ -from __future__ import print_function from helper import unittest, PillowTestCase, hopper from PIL import Image diff --git a/docs/conf.py b/docs/conf.py index 11956b03e..f21e2e51a 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,9 +12,6 @@ # All configuration values have a default; values that are commented out # serve to show the default. -import sys -import os - # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. From b82151f281892930924c15649609a92c3a6db89e Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 7 Oct 2016 21:52:25 +1100 Subject: [PATCH 4/4] Removed unused division import --- Tests/test_file_tiff_metadata.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Tests/test_file_tiff_metadata.py b/Tests/test_file_tiff_metadata.py index c75487f9b..844703370 100644 --- a/Tests/test_file_tiff_metadata.py +++ b/Tests/test_file_tiff_metadata.py @@ -1,5 +1,3 @@ -from __future__ import division - import io import struct