| 111 | |
| 112 | |
| 113 | static PyObject * |
| 114 | set_legacy_print_mode(PyObject *NPY_UNUSED(self), PyObject *args) |
| 115 | { |
| 116 | if (!PyArg_ParseTuple(args, "i", &npy_legacy_print_mode)) { |
| 117 | return NULL; |
| 118 | } |
| 119 | if (!npy_legacy_print_mode) { |
| 120 | npy_legacy_print_mode = INT_MAX; |
| 121 | } |
| 122 | Py_RETURN_NONE; |
| 123 | } |
| 124 | |
| 125 | |
| 126 | /* Only here for API compatibility */ |