Support Path objects where filenames are used #77
Labels
development
Development issues: package deployment, project organization, etc.
enhancement
New feature or request
In functions/methods that use a string to specify a path or filename, we should also support the use of
pathlib.Path
objects. For example, inDocument.__init__()
,isinstance(stream, (str, bytes, bytearray))
is used to identify a filename vs. a stream; we should addPath
to that second argument, and that's about all we'd need to do.In places where other code expects a string, we can cast to
str
to handle something that may either be astr
or aPath
.The text was updated successfully, but these errors were encountered: