I prefer to use pathlib.Path objects, but helpers like distutils.Command.make_file only accept strings:
|
if isinstance(infiles, str): |
|
infiles = (infiles,) |
|
elif not isinstance(infiles, (list, tuple)): |
|
raise TypeError( |
|
"'infiles' must be a string, or a list or tuple of strings") |
Filing this issue before I go in and make a PR to change these to os.PathLike checks. Any issues with that approach?
I prefer to use pathlib.Path objects, but helpers like
distutils.Command.make_fileonly accept strings:cpython/Lib/distutils/cmd.py
Lines 387 to 391 in b69297e
Filing this issue before I go in and make a PR to change these to
os.PathLikechecks. Any issues with that approach?