aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2020-03-11 14:28:20 -0700
committerAaron Rossetto <aaron.rossetto@ni.com>2020-03-12 07:27:46 -0500
commitf8d3fe41095374c7a96c2607cc9ffeced17de283 (patch)
tree5c641ce0acf07747706e823379f98058e405ec23 /host
parent38d52121f9174f03be0d778a433b3580a5eae301 (diff)
downloaduhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.tar.gz
uhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.tar.bz2
uhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.zip
python: Remove Python2-specific code
Diffstat (limited to 'host')
-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)
{