mirror of
https://github.com/qurator-spk/modstool.git
synced 2025-08-16 13:09:53 +02:00
🎨 Sort and remove unused imports
This commit is contained in:
parent
89b71dd5c4
commit
2511fe8ca4
4 changed files with 15 additions and 40 deletions
|
@ -1,12 +1,12 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import ast
|
||||
from itertools import groupby
|
||||
import os
|
||||
import re
|
||||
import warnings
|
||||
import os
|
||||
from typing import Any, List, Sequence, MutableMapping, Dict
|
||||
from collections import defaultdict
|
||||
from itertools import groupby
|
||||
from typing import Any, Dict, List, MutableMapping, Sequence
|
||||
|
||||
import numpy as np
|
||||
from lxml import etree as ET
|
||||
|
@ -281,8 +281,8 @@ def sorted_groupby(iterable, key=None):
|
|||
|
||||
|
||||
def _to_dict(root, raise_errors):
|
||||
from .mods4pandas import mods_to_dict, mets_to_dict
|
||||
from .alto4pandas import alto_to_dict
|
||||
from .mods4pandas import mets_to_dict, mods_to_dict
|
||||
|
||||
root_name = ET.QName(root.tag)
|
||||
if root_name.namespace == "http://www.loc.gov/mods/v3":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue