invenio_migrator/legacy/bibdocfile.py
def _import_bibdoc():
    """Import BibDocFile."""
    try:
        from invenio.bibdocfile import BibRecDocs, BibDoc
    except ImportError:
        from invenio.legacy.bibdocfile.api import BibRecDocs, BibDoc
    return BibRecDocs, BibDoc
def _import_bibdoc():
    """Import BibDocFile."""
    try:
        from invenio.bibdocfile import BibRecDocs, BibDoc
    except ImportError:
        from invenio.legacy.bibdocfile.api import BibRecDocs, BibDoc
    return BibRecDocs, BibDoc
Import BibDocFile.