Patch #443899: Check modes on files before performing operations. Use IOErrors where file objects use them.
Patch #443899: Check modes on files before performing operations.
Use IOErrors where file objects use them.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator