NonameSsSs commited on
Commit
75da5d1
·
verified ·
1 Parent(s): dc0b212

Update cffi/api.py

Browse files
Files changed (1) hide show
  1. cffi/api.py +1 -15
cffi/api.py CHANGED
@@ -46,21 +46,7 @@ class FFI(object):
46
  # You need PyPy (>= 2.0 beta), or a CPython (>= 2.6) with
47
  # _cffi_backend.so compiled.
48
  import _cffi_backend as backend
49
- from . import __version__
50
- if backend.__version__ != __version__:
51
- # bad version! Try to be as explicit as possible.
52
- if hasattr(backend, '__file__'):
53
- # CPython
54
- raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r. When we import the top-level '_cffi_backend' extension module, we get version %s, located in %r. The two versions should be equal; check your installation." % (
55
- __version__, __file__,
56
- backend.__version__, backend.__file__))
57
- else:
58
- # PyPy
59
- raise Exception("Version mismatch: this is the 'cffi' package version %s, located in %r. This interpreter comes with a built-in '_cffi_backend' module, which is version %s. The two versions should be equal; check your installation." % (
60
- __version__, __file__, backend.__version__))
61
- # (If you insist you can also try to pass the option
62
- # 'backend=backend_ctypes.CTypesBackend()', but don't
63
- # rely on it! It's probably not going to work well.)
64
 
65
  from . import cparser
66
  self._backend = backend
 
46
  # You need PyPy (>= 2.0 beta), or a CPython (>= 2.6) with
47
  # _cffi_backend.so compiled.
48
  import _cffi_backend as backend
49
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
 
51
  from . import cparser
52
  self._backend = backend