mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-25 15:33:09 +03:00
Merge pull request #6551 from nulano/interp
Removed support for PyPy before Python 3.6
This commit is contained in:
commit
d06cd7073d
|
@ -68,17 +68,6 @@ def _pyimagingtkcall(command, photo, id):
|
||||||
# may raise an error if it cannot attach to Tkinter
|
# may raise an error if it cannot attach to Tkinter
|
||||||
from . import _imagingtk
|
from . import _imagingtk
|
||||||
|
|
||||||
if hasattr(tk, "interp"):
|
|
||||||
# Required for PyPy, which always has CFFI installed
|
|
||||||
from cffi import FFI
|
|
||||||
|
|
||||||
ffi = FFI()
|
|
||||||
|
|
||||||
# PyPy is using an FFI CDATA element
|
|
||||||
# (Pdb) self.tk.interp
|
|
||||||
# <cdata 'Tcl_Interp *' 0x3061b50>
|
|
||||||
_imagingtk.tkinit(int(ffi.cast("uintptr_t", tk.interp)))
|
|
||||||
else:
|
|
||||||
_imagingtk.tkinit(tk.interpaddr())
|
_imagingtk.tkinit(tk.interpaddr())
|
||||||
tk.call(command, photo, id)
|
tk.call(command, photo, id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user