mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
use cffi by default in pypy, not in c-python
This commit is contained in:
parent
c3812f46b2
commit
8a69f6caa0
|
@ -100,18 +100,14 @@ import os, sys
|
||||||
import collections
|
import collections
|
||||||
import numbers
|
import numbers
|
||||||
|
|
||||||
USE_CFFI_ACCESS = True
|
# works everywhere, win for pypy, not cpython
|
||||||
|
USE_CFFI_ACCESS = hasattr(sys, 'pypy_version_info')
|
||||||
try:
|
try:
|
||||||
import cffi
|
import cffi
|
||||||
HAS_CFFI=True
|
HAS_CFFI=True
|
||||||
except:
|
except:
|
||||||
HAS_CFFI=False
|
HAS_CFFI=False
|
||||||
|
|
||||||
#if HAS_CFFI:
|
|
||||||
# from PIL import PyAccess
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def isImageType(t):
|
def isImageType(t):
|
||||||
"""
|
"""
|
||||||
Checks if an object is an image object.
|
Checks if an object is an image object.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user