Skip to content

Commit

Permalink
Merge pull request #6551 from nulano/interp
Browse files Browse the repository at this point in the history
Removed support for PyPy before Python 3.6
  • Loading branch information
radarhere committed Aug 31, 2022
2 parents 96c4f54 + 54c560f commit d06cd70
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/PIL/ImageTk.py
Expand Up @@ -68,18 +68,7 @@ def _pyimagingtkcall(command, photo, id):
# may raise an error if it cannot attach to Tkinter
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)


Expand Down

0 comments on commit d06cd70

Please sign in to comment.