use cffi by default in pypy, not in c-python

This commit is contained in:
wiredfool 2014-01-06 22:08:14 -08:00
parent c3812f46b2
commit 8a69f6caa0

View File

@ -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.