Skip to content

Commit

Permalink
Correct error message in _encodeFilename
Browse files Browse the repository at this point in the history
  • Loading branch information
janssenhenning committed Jan 28, 2022
1 parent 146b9a1 commit 2f95938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxml/apihelpers.pxi
Expand Up @@ -1618,7 +1618,7 @@ cdef object _encodeFilename(object filename):
pass
return filename8
else:
raise TypeError("Argument must be string, unicode or PathLike.")
raise TypeError("Argument must be string or unicode")

cdef object _decodeFilename(const_xmlChar* c_path):
u"""Make the filename a unicode string if we are in Py3.
Expand Down

0 comments on commit 2f95938

Please sign in to comment.