

def __init__(self, file_obj, file_path, extension):
    self.file_obj = file_obj
    self.filepath = file_path
    self.filename = os.path.basename(self.filepath)
    self.document = os.path.splitext(self.filename)[0]
    self.temp_input = tempfile.NamedTemporaryFile()
    self.file_obj.seek(0)
    self.temp_input.write(self.file_obj.read())
    self.temp_input.seek(0)
    self.extension_to = extension

dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/converter.py NewFileConverter.__init__/original