Now that we have py3.5 as baseline, we should unify all file handling to make use of pathlib. I.e. filenames should be handled like encoded strings: Convert to pathlib.Path as early as possible, and pass around pathlib.Path objects internally exclusively.
Also, reading and writing files can then be handled using the read_text and write_text method, etc.
Now that we have py3.5 as baseline, we should unify all file handling to make use of
pathlib
. I.e. filenames should be handled like encoded strings: Convert topathlib.Path
as early as possible, and pass aroundpathlib.Path
objects internally exclusively.Also, reading and writing files can then be handled using the
read_text
andwrite_text
method, etc.