original) (raw)
bpo-30432: FileInput doesn't accept PathLike objects for file names by rowillia · Pull Request #1732 · python/cpython (FileInput fails if a single PathLike
is passed in as files
due to attempting to wrap it in a tuple:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/Cellar/python3/3.6.0/Frameworks/Python.framework/Versions/3.6/lib/python3.6/fileinput.py", line 198, in __init__
files = tuple(files)
TypeError: 'PosixPath' object is not iterable