Skip to content

Commit d06cd70

Browse files
authored
Merge pull request #6551 from nulano/interp
Removed support for PyPy before Python 3.6
2 parents 96c4f54 + 54c560f commit d06cd70

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/PIL/ImageTk.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,7 @@ def _pyimagingtkcall(command, photo, id):
6868
# may raise an error if it cannot attach to Tkinter
6969
from . import _imagingtk
7070

71-
if hasattr(tk, "interp"):
72-
# Required for PyPy, which always has CFFI installed
73-
from cffi import FFI
74-
75-
ffi = FFI()
76-
77-
# PyPy is using an FFI CDATA element
78-
# (Pdb) self.tk.interp
79-
# <cdata 'Tcl_Interp *' 0x3061b50>
80-
_imagingtk.tkinit(int(ffi.cast("uintptr_t", tk.interp)))
81-
else:
82-
_imagingtk.tkinit(tk.interpaddr())
71+
_imagingtk.tkinit(tk.interpaddr())
8372
tk.call(command, photo, id)
8473

8574

0 commit comments

Comments
 (0)