In identifying the correct filetype to read, readtext() uses tolower() on the file extension. But extract_archive() doesn't. So if you try to read a file with the extension ".DOCX" it is correctly sent to extract_archive(), but that fails with "Archive extension DOCX unrecognised." and the file cannot be read. This trivial PR fixes that.
In identifying the correct filetype to read,
readtext()
usestolower()
on the file extension. Butextract_archive()
doesn't. So if you try to read a file with the extension ".DOCX" it is correctly sent toextract_archive()
, but that fails with "Archive extension DOCX unrecognised." and the file cannot be read. This trivial PR fixes that.