File tree Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Expand file tree Collapse file tree 1 file changed +0
-4
lines changed Original file line number Diff line number Diff line change @@ -736,9 +736,7 @@ inline bool PyIterable_Check(PyObject *obj) {
736
736
}
737
737
738
738
inline bool PyNone_Check (PyObject *o) { return o == Py_None; }
739
- #if PY_MAJOR_VERSION >= 3
740
739
inline bool PyEllipsis_Check (PyObject *o) { return o == Py_Ellipsis; }
741
- #endif
742
740
743
741
inline bool PyUnicode_Check_Permissive (PyObject *o) { return PyUnicode_Check (o) || PYBIND11_BYTES_CHECK (o); }
744
742
@@ -1020,13 +1018,11 @@ class none : public object {
1020
1018
none () : object(Py_None, borrowed_t {}) { }
1021
1019
};
1022
1020
1023
- #if PY_MAJOR_VERSION >= 3
1024
1021
class ellipsis : public object {
1025
1022
public:
1026
1023
PYBIND11_OBJECT (ellipsis, object, detail::PyEllipsis_Check)
1027
1024
ellipsis () : object(Py_Ellipsis, borrowed_t {}) { }
1028
1025
};
1029
- #endif
1030
1026
1031
1027
class bool_ : public object {
1032
1028
public:
You can’t perform that action at this time.
0 commit comments