'Open the current base file with the (original) mode and encoding.
Return the resulting stream.'

def _open(self):

    if (self.encoding is None):
        stream = open(self.baseFilename, self.mode)
    else:
        stream = codecs.open(self.baseFilename, self.mode, self.encoding)
    return stream
