| 177 | } |
| 178 | |
| 179 | bool IsInteger(PyObject* py_value) { |
| 180 | #if PY_MAJOR_VERSION >= 3 |
| 181 | return PyLong_Check(py_value); |
| 182 | #else |
| 183 | return PyInt_Check(py_value); |
| 184 | #endif |
| 185 | } |
| 186 | |
| 187 | // This function considers a Dimension._value of None to be valid, and sets the |
| 188 | // value to be -1 in that case. |
no outgoing calls
no test coverage detected