restore python3.5 compatibility
Fixed
- python3.5:
TypeError
in_write_event
when renaming temporary fileTypeError
in_sync_event
when reading file- tests:
TypeError
when converting topathlib.Path
- tests:
AttributeError
due to unavailableMagicMock.assert_called_once