Skip to content

Commit

Permalink
Do not use CFFI access by default on PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Jun 28, 2023
1 parent e5188f6 commit 811bfe3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/PIL/Image.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ class DecompressionBombError(Exception):
raise


# works everywhere, win for pypy, not cpython
USE_CFFI_ACCESS = hasattr(sys, "pypy_version_info")
USE_CFFI_ACCESS = False
try:
import cffi
except ImportError:
Expand Down

0 comments on commit 811bfe3

Please sign in to comment.