mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-25 16:20:33 +03:00
Remove superfluous import of FixTk
The `_imaging` module does not link against libtcl/libtk. `FixTk` is imported by `import Tkinter` if necessary. The `FixTk` module is for Python 2.x on Windows only.
This commit is contained in:
parent
8b649d6e79
commit
140c4b54c0
|
@ -46,15 +46,6 @@ class _imaging_not_installed(object):
|
||||||
# Limit to around a quarter gigabyte for a 24 bit (3 bpp) image
|
# Limit to around a quarter gigabyte for a 24 bit (3 bpp) image
|
||||||
MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3)
|
MAX_IMAGE_PIXELS = int(1024 * 1024 * 1024 // 4 // 3)
|
||||||
|
|
||||||
try:
|
|
||||||
# give Tk a chance to set up the environment, in case we're
|
|
||||||
# using an _imaging module linked against libtcl/libtk (use
|
|
||||||
# __import__ to hide this from naive packagers; we don't really
|
|
||||||
# depend on Tk unless ImageTk is used, and that module already
|
|
||||||
# imports Tkinter)
|
|
||||||
__import__("FixTk")
|
|
||||||
except ImportError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# If the _imaging C module is not present, Pillow will not load.
|
# If the _imaging C module is not present, Pillow will not load.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user