Skip to content

PlainTextConverter has unused mammoth import (copy-paste from DocxConverter) #1951

@hanhan761

Description

@hanhan761

The PlainTextConverter module has an unused mammoth import that was copied from DocxConverter. This is dead code and misleading — it suggests PlainTextConverter has a dependency on mammoth when it doesn't. The import also stores _dependency_exc_info on import failure, but never checks it, creating an unused variable that serves no purpose.

Fix

Remove the mammoth import block and the associated _dependency_exc_info variable from _plain_text_converter.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions