Added Pathlib2 dependency so that Python2 has the same interface
as Python3 for file system manipulation.
Changed _open_for_write to use Path.mkdir for cache file
creation to avoid race conditions.
Testing
% nosetests test/unittest
nose.plugins.cover: ERROR: Coverage not available: unable to import coverage module
................................................................................
----------------------------------------------------------------------
Ran 80 tests in 1.818s
OK
NOTE
In a perfect would I would prove that there's no race condition using injected locks to stall the main process until the cache directory is created but I don't know how to do that with multiprocess.
Fixes #117
Changes
_open_for_write
to usePath.mkdir
for cache file creation to avoid race conditions.Testing
NOTE
In a perfect would I would prove that there's no race condition using injected locks to stall the main process until the cache directory is created but I don't know how to do that with multiprocess.