Skip to content

Commit 2fafced

Browse files
committed
Remove python3 conditions
1 parent 930f7b3 commit 2fafced

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

tiledb/npbuffer.cc

-6
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ using namespace tiledb;
5959
namespace py = pybind11;
6060
using namespace pybind11::literals;
6161

62-
#if PY_MAJOR_VERSION >= 3
6362
class NumpyConvert {
6463
private:
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

556554
py::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

0 commit comments

Comments
 (0)