def __init__(self, output, line_separator=os.linesep, encoding=None):
        if isinstance(output, basestring):
            output = open(output, 'w')
        self.output = output
        self._line_separator = line_separator
        self._encode = self._create_encoder(encoding)
        self._preamble()
:param output: Either an opened, file like object, or a path to the
dataset/ETHPy150Open shellderp/sublime-robot-plugin/lib/robot/utils/markupwriters.py/_MarkupWriter.__init__