FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Added missing future print imports and removed unnecessary imports · v-python/Pillow@4e2de9d · GitHub

Repository navigation

Commit 4e2de9d

Browse files
committed
Added missing future print imports and removed unnecessary imports
1 parent 77f7cfd commit 4e2de9d

14 files changed

Lines changed: 15 additions & 5 deletions

‎PIL/ImageFont.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
# See the README file for information on usage and redistribution.
2626
#
2727

28-
from __future__ import print_function
29-
3028
from PIL import Image
3129
from PIL._util import isDirectory, isPath
3230
import os

‎PIL/PSDraw.py‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
# See the README file for information on usage and redistribution.
1616
#
1717

18-
from __future__ import print_function
19-
2018
from PIL import EpsImagePlugin
2119

2220

‎PIL/PcxImagePlugin.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,16 @@
2525
# See the README file for information on usage and redistribution.
2626
#
2727

28-
__version__ = "0.6"
28+
from __future__ import print_function
2929

3030
from PIL import Image, ImageFile, ImagePalette, _binary
3131

3232
i8 = _binary.i8
3333
i16 = _binary.i16le
3434
o8 = _binary.o8
3535

36+
__version__ = "0.6"
37+
3638

3739
def _accept(prefix):
3840
return i8(prefix[0]) == 10 and i8(prefix[1]) in [0, 2, 3, 5]

‎Scripts/createfontdatachunk.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import base64
23
import os
34
import sys

‎Tests/import_all.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
import sys
23
sys.path.insert(0, ".")
34

‎Tests/make_hash.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# brute-force search for access descriptor hash table
22

3+
from __future__ import print_function
4+
35
modes = [
46
"1",
57
"L", "LA",

‎Tests/test_file_libtiff.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
from helper import unittest, PillowTestCase, hopper, py3
23

34
import os

‎Tests/test_file_tiff.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
from helper import unittest, PillowTestCase, hopper, py3
23

34
from PIL import Image, TiffImagePlugin

‎Tests/test_format_hsv.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
from helper import unittest, PillowTestCase, hopper
23

34
from PIL import Image

‎Tests/test_imagemath.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from __future__ import print_function
12
from helper import unittest, PillowTestCase
23

34
from PIL import Image

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL