1. Python CFFI
  2. Untitled project
  3. cffi

Commits

Armin Rigo  committed 62840ab

Clearer warning message

  • Participants
  • Parent commits 7810bd6
  • Branches default

Comments (0)

Files changed (1)

File cffi/api.py

View file
  • Ignore whitespace
                 import _cffi_backend as backend
             except ImportError, e:
                 import warnings
-                warnings.warn("ImportError: %s\n"
+                warnings.warn("import _cffi_backend: %s\n"
                               "Falling back to the ctypes backend." % (e,))
                 from . import backend_ctypes
                 backend = backend_ctypes.CTypesBackend()