File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,6 @@ using namespace tiledb;
5959namespace py = pybind11;
6060using namespace pybind11 ::literals;
6161
62- #if PY_MAJOR_VERSION >= 3
6362class NumpyConvert {
6463private:
6564 bool use_iter_ = false ;
@@ -551,24 +550,19 @@ if (PyUnicode_Check(u.ptr())) {
551550 return py::make_tuple (data_np, offset_np);
552551 }
553552};
554- #endif
555553
556554py::tuple convert_np (py::array input, bool allow_unicode,
557555 bool use_fallback = false ) {
558- #if PY_MAJOR_VERSION >= 3
559556 if (use_fallback) {
560- #endif
561557 auto tiledb = py::module::import (" tiledb" );
562558 auto libtiledb = tiledb.attr (" libtiledb" );
563559 auto array_to_buffer = libtiledb.attr (" array_to_buffer" );
564560 return array_to_buffer (input);
565- #if PY_MAJOR_VERSION >= 3
566561 } else {
567562 NumpyConvert cvt (input);
568563 cvt.allow_unicode (allow_unicode);
569564 return cvt.get ();
570565 }
571- #endif
572566}
573567
574568}; // namespace tiledbpy
You can’t perform that action at this time.
0 commit comments