diff options
author | Martin Braun <martin.braun@ettus.com> | 2020-03-11 14:28:20 -0700 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-03-12 07:27:46 -0500 |
commit | f8d3fe41095374c7a96c2607cc9ffeced17de283 (patch) | |
tree | 5c641ce0acf07747706e823379f98058e405ec23 | |
parent | 38d52121f9174f03be0d778a433b3580a5eae301 (diff) | |
download | uhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.tar.gz uhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.tar.bz2 uhd-f8d3fe41095374c7a96c2607cc9ffeced17de283.zip |
python: Remove Python2-specific code
-rw-r--r-- | host/python/pyuhd.cpp | 7 |
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) { |