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 5a8960b commit ae9e125
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 @@ -614,11 +614,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 ae9e125

Please sign in to comment.