Issue #6215: Fixed to use self.open() instead of open() or io.open().
Issue #6215: Fixed to use self.open() instead of open() or io.open().

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