Skip to content

Commit

Permalink
Removed unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Mar 3, 2017
1 parent 0b93853 commit 798fde5
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion PIL/EpsImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import os
import sys
from . import Image, ImageFile
from ._binary import i32le as i32, o32le as o32
from ._binary import i32le as i32

__version__ = "0.5"

Expand Down
1 change: 0 additions & 1 deletion PIL/GifImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ def _save_netpbm(im, fp, filename):

import os
from subprocess import Popen, check_call, PIPE, CalledProcessError
import tempfile
file = im._dump()

with open(filename, 'wb') as f:
Expand Down
2 changes: 1 addition & 1 deletion PIL/JpegImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
import io
import warnings
from . import Image, ImageFile, TiffImagePlugin
from ._binary import i8, o8, i16be as i16, i32be as i32
from ._binary import i8, o8, i16be as i16
from .JpegPresets import presets
from ._util import isStringType

Expand Down
2 changes: 1 addition & 1 deletion PIL/PngImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import struct

from . import Image, ImageFile, ImagePalette
from ._binary import i8, i16be as i16, i32be as i32, o8, o16be as o16, o32be as o32
from ._binary import i8, i16be as i16, i32be as i32, o16be as o16, o32be as o32

__version__ = "0.9"

Expand Down
2 changes: 1 addition & 1 deletion PIL/TgaImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


from . import Image, ImageFile, ImagePalette
from ._binary import i8, i16le as i16, o8, o16le as o16, o32le as o32
from ._binary import i8, i16le as i16, o8, o16le as o16

__version__ = "0.3"

Expand Down
8 changes: 4 additions & 4 deletions Tests/test_file_jpeg.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from helper import unittest, PillowTestCase, hopper, py3
from helper import unittest, PillowTestCase, hopper
from helper import djpeg_available, cjpeg_available

from io import BytesIO
Expand Down Expand Up @@ -32,11 +32,11 @@ def gen_random_image(self, size, mode='RGB'):
""" Generates a very hard to compress file
:param size: tuple
:param mode: optional image mode
"""
return Image.frombytes(mode, size,
os.urandom(size[0]*size[1]*len(mode)))

def test_sanity(self):

# internal version number
Expand Down Expand Up @@ -176,7 +176,7 @@ def test_progressive_cmyk_buffer(self):
f = BytesIO()
im = self.gen_random_image((256,256), 'CMYK')
im.save(f, format='JPEG', progressive=True, quality=94)

def test_large_exif(self):
# https://github.com/python-pillow/Pillow/issues/148
f = self.tempfile('temp.jpg')
Expand Down
1 change: 0 additions & 1 deletion Tests/test_file_wmf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from helper import unittest, PillowTestCase
from PIL import Image
from io import BytesIO

class TestFileWmf(PillowTestCase):

Expand Down

0 comments on commit 798fde5

Please sign in to comment.