Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It is not immediately obvious why as_posix() is being called in most situations and it is often unnecessary, as subprocess.Popen() and friends have supported path-like objects without 'shell=True' since Python 3.6. Eliminate all these calls, which simplifies everything. However, path-like objects are not iterable, so explicit conversions to str are added in places where they need to be in lieu of calling as_posix(), which appears to be preferred based on my interpretation of the pathlib documentation. Signed-off-by: Nathan Chancellor <nathan@kernel.org>
- Loading branch information
1 parent
c100cde
commit c49e8b4
Showing
3 changed files
with
53 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters