File tree 1 file changed +0
-6
lines changed
1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ using namespace tiledb;
59
59
namespace py = pybind11;
60
60
using namespace pybind11 ::literals;
61
61
62
- #if PY_MAJOR_VERSION >= 3
63
62
class NumpyConvert {
64
63
private:
65
64
bool use_iter_ = false ;
@@ -551,24 +550,19 @@ if (PyUnicode_Check(u.ptr())) {
551
550
return py::make_tuple (data_np, offset_np);
552
551
}
553
552
};
554
- #endif
555
553
556
554
py::tuple convert_np (py::array input, bool allow_unicode,
557
555
bool use_fallback = false ) {
558
- #if PY_MAJOR_VERSION >= 3
559
556
if (use_fallback) {
560
- #endif
561
557
auto tiledb = py::module::import (" tiledb" );
562
558
auto libtiledb = tiledb.attr (" libtiledb" );
563
559
auto array_to_buffer = libtiledb.attr (" array_to_buffer" );
564
560
return array_to_buffer (input);
565
- #if PY_MAJOR_VERSION >= 3
566
561
} else {
567
562
NumpyConvert cvt (input);
568
563
cvt.allow_unicode (allow_unicode);
569
564
return cvt.get ();
570
565
}
571
- #endif
572
566
}
573
567
574
568
}; // namespace tiledbpy
You can’t perform that action at this time.
0 commit comments