Fixes OSError deprecation warning.
Merge branch 'master' into asyncmacro