Raytracing: remove some more deprecated Py2 code
This commit is contained in:
@@ -203,10 +203,6 @@ private:
|
||||
vecs[i][l] = PyFloat_AsDouble(temp);
|
||||
else if (PyLong_Check(temp))
|
||||
vecs[i][l] = (double) PyLong_AsLong(temp);
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
else if (PyInt_Check(temp))
|
||||
vecs[i][l] = (double) PyInt_AsLong(temp);
|
||||
#endif
|
||||
else
|
||||
throw Py::ValueError("Wrong parameter format, four Tuple of three floats needed!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user