mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Removed support for PyPy before Python 3.6
This commit is contained in:
parent
d6e59bc750
commit
54c560f611
|
@ -68,18 +68,7 @@ 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"):
|
_imagingtk.tkinit(tk.interpaddr())
|
||||||
# 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())
|
|
||||||
tk.call(command, photo, id)
|
tk.call(command, photo, id)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user