diff options
author | Stuart Berg <bergs@janelia.hhmi.org> | 2015-11-01 23:49:54 -0500 |
---|---|---|
committer | Stuart Berg <bergs@janelia.hhmi.org> | 2016-01-17 11:20:14 -0500 |
commit | 91ae5fbfe5664a4bdb4522dc7a5dda75040ce35c (patch) | |
tree | 45a93816620d5976dc19ae8ab099b4dd5b3e05ef /numpy | |
parent | 80abf6ebf89c2ccececafc25238716ac13f0019e (diff) | |
download | numpy-91ae5fbfe5664a4bdb4522dc7a5dda75040ce35c.tar.gz |
MAINT: Add '0x' to API version error for clarity.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/code_generators/generate_numpy_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/code_generators/generate_numpy_api.py b/numpy/core/code_generators/generate_numpy_api.py index a97564fa4..d376ffd29 100644 --- a/numpy/core/code_generators/generate_numpy_api.py +++ b/numpy/core/code_generators/generate_numpy_api.py @@ -84,13 +84,13 @@ _import_array(void) /* Perform runtime check of C API version */ if (NPY_VERSION != PyArray_GetNDArrayCVersion()) { PyErr_Format(PyExc_RuntimeError, "module compiled against "\ - "ABI version %%x but this version of numpy is %%x", \ + "ABI version 0x%%x but this version of numpy is 0x%%x", \ (int) NPY_VERSION, (int) PyArray_GetNDArrayCVersion()); return -1; } if (NPY_FEATURE_VERSION > PyArray_GetNDArrayCFeatureVersion()) { PyErr_Format(PyExc_RuntimeError, "module compiled against "\ - "API version %%x but this version of numpy is %%x", \ + "API version 0x%%x but this version of numpy is 0x%%x", \ (int) NPY_FEATURE_VERSION, (int) PyArray_GetNDArrayCFeatureVersion()); return -1; } |