From f8d3fe41095374c7a96c2607cc9ffeced17de283 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Wed, 11 Mar 2020 14:28:20 -0700 Subject: python: Remove Python2-specific code --- host/python/pyuhd.cpp | 7 ------- 1 file changed, 7 deletions(-) (limited to 'host/python/pyuhd.cpp') 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) { -- cgit v1.2.3