]> granicus.if.org Git - python/commit
bpo-38353: Simplify calculate_pybuilddir() (GH-16614)
authorVictor Stinner <vstinner@python.org>
Mon, 7 Oct 2019 10:56:59 +0000 (12:56 +0200)
committerGitHub <noreply@github.com>
Mon, 7 Oct 2019 10:56:59 +0000 (12:56 +0200)
commitb96145a6b5d89599ebccd2111d93f5670ddae840
treeebaaf6f613f21fef2f5e0ab548d4d2d837b2f386
parentd97f1ce6dba6c4aa5614adc06ad2e0948709845c
bpo-38353: Simplify calculate_pybuilddir() (GH-16614)

Calling _Py_wfopen() is enough to check if filename is an existing
file or not. There is no need to check first isfile().
Modules/getpath.c