use with ... open() where appropriate instead of just open()
Merge pull request #517 from jskda/master

Use with ... open() where appropriate instead of just open()