mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-24 17:06:16 +03:00
Removed unused imports
This commit is contained in:
parent
0b93853fd8
commit
798fde57ca
|
@ -25,7 +25,7 @@ import io
|
|||
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"
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -39,7 +39,7 @@ import struct
|
|||
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
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ import zlib
|
|||
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"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
@ -32,11 +32,11 @@ class TestFileJpeg(PillowTestCase):
|
|||
""" 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
|
||||
|
@ -176,7 +176,7 @@ class TestFileJpeg(PillowTestCase):
|
|||
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')
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
from helper import unittest, PillowTestCase
|
||||
from PIL import Image
|
||||
from io import BytesIO
|
||||
|
||||
class TestFileWmf(PillowTestCase):
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user