Skip to content

Commit

Permalink
Remove residual Py35 backcompat.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Feb 25, 2020
1 parent 59b5c86 commit be16a2e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,7 @@ cairo_font_face_t* font_face_from_path(std::string pathspec)
cairo_font_face_t* font_face_from_path(py::object path) {
return
font_face_from_path(
#if PY_VERSION_HEX >= 0x03060000
py::reinterpret_steal<py::object>(PY_CHECK(PyOS_FSPath, path.ptr()))
#else
path
#endif
.cast<std::string>());
}

Expand Down

0 comments on commit be16a2e

Please sign in to comment.