def open(self, filename):
        """Open a new file named 'filename'.  This overrides both the
        'filename' and 'file' arguments to the constructor."""
        self.filename = filename
        self.file = open(self.filename, errors=self.errors)
        self.current_line = 0
Open a new file named 'filename'.  This overrides both the
        'filename' and 'file' arguments to the constructor.
product/gradle-plugin/src/main/python/setuptools/_distutils/text_file.py