App: remove some more deprecated Py2 code
and remove deprecated void from function signature and replace 0 or NULL with nullptr
This commit is contained in:
@@ -527,9 +527,6 @@ Py::Object pyFromQuantity(const Quantity &quantity) {
|
||||
int i;
|
||||
switch(essentiallyInteger(v,l,i)) {
|
||||
case 1:
|
||||
#if PY_MAJOR_VERSION < 3
|
||||
return Py::Int(i);
|
||||
#endif
|
||||
case 2:
|
||||
return Py::Long(l);
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user