filename = fspath(filename) # Does type-checking of filename
.
TypeError: expected str, bytes or os.PathLike object, not WebDriver
TypeError: expected str, bytes or os.PathLike object, not WebDriver
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
The argument to
open()
has to be one filename, not a tuple with multiple filenames in it.If you want to read all the files, do it in a loop: