Skip to content

Commit ee6a223

Browse files
committed
fix(core): 🐛 fix import
1 parent c5848bc commit ee6a223

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

rocrate_validator/models.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
import enum_tools
3232
from rdflib import RDF, RDFS, Graph, Namespace, URIRef
3333

34-
from rocrate_validator.utils import log as logging
3534
from rocrate_validator import __version__
3635
from rocrate_validator.constants import (DEFAULT_HTTP_CACHE_MAX_AGE,
3736
DEFAULT_ONTOLOGY_FILE,
@@ -49,11 +48,13 @@
4948
ROCrateMetadataNotFoundError)
5049
from rocrate_validator.events import Event, EventType, Publisher, Subscriber
5150
from rocrate_validator.rocrate import ROCrate
52-
from rocrate_validator.utils.collections import (MapIndex)
51+
from rocrate_validator.utils import log as logging
52+
from rocrate_validator.utils.collections import MapIndex, MultiIndexMap
53+
from rocrate_validator.utils.http import HttpRequester
5354
from rocrate_validator.utils.paths import get_profiles_path
54-
from rocrate_validator.utils.python_helpers import get_requirement_name_from_file
55+
from rocrate_validator.utils.python_helpers import \
56+
get_requirement_name_from_file
5557
from rocrate_validator.utils.uri import URI
56-
from rocrate_validator.utils.collections import MultiIndexMap
5758

5859
# set the default profiles path
5960
DEFAULT_PROFILES_PATH = get_profiles_path()
@@ -2399,8 +2400,6 @@ def __post_init__(self):
23992400
if isinstance(self.requirement_severity, str):
24002401
self.requirement_severity = Severity[self.requirement_severity]
24012402
# initialize the HTTP cache
2402-
from rocrate_validator.utils import HttpRequester
2403-
# HttpRequester.initialize_cache(cache_path=self.cache_path, cache_max_age=self.cache_max_age)
24042403
HttpRequester.initialize_cache(cache_path=self.cache_path, cache_max_age=self.cache_max_age)
24052404
logger.debug("HTTP cache initialized at %s with max age %s seconds",
24062405
self.cache_path, self.cache_max_age)

0 commit comments

Comments
 (0)