aboutsummaryrefslogtreecommitdiffstats
path: root/host/python/pyuhd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/python/pyuhd.cpp')
-rw-r--r--host/python/pyuhd.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/host/python/pyuhd.cpp b/host/python/pyuhd.cpp
index 9ffaa5bb5..19f87094e 100644
--- a/host/python/pyuhd.cpp
+++ b/host/python/pyuhd.cpp
@@ -31,18 +31,11 @@ namespace py = pybind11;
// for newer Python versions.
// This function is also necessary because it ensures access to the C API
// and removes a warning.
-#if PY_MAJOR_VERSION >= 3
void* init_numpy()
{
import_array();
return NULL;
}
-#else
-void init_numpy()
-{
- import_array();
-}
-#endif
PYBIND11_MODULE(libpyuhd, m)
{