Skip to content

Commit

Permalink
Fixed tcomment and spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-el0 committed May 12, 2024
1 parent 658e730 commit 6920a6e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions xbrl/instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,9 +347,6 @@ def parse_xbrl(instance_path: str, cache: HttpCache, instance_url: str or None =
schema_uri: str = schema_ref.attrib[XLINK_NS + 'href']
# check if the schema uri is relative or absolute
# submissions from SEC normally have their own schema files, whereas submissions from the uk have absolute schemas

# initalise a set that will store cached taxonomy schemas uris to avoid recursive loops


if is_url(schema_uri):
# fetch the taxonomy extension schema from remote
Expand All @@ -361,6 +358,7 @@ def parse_xbrl(instance_path: str, cache: HttpCache, instance_url: str or None =
else:
# try to find the taxonomy extension schema file locally because no full url can be constructed
schema_path = resolve_uri(instance_path, schema_uri)
# initalise a set that will store cached taxonomy schemas uris to avoid recursive loops
imported_schema_uris = set()
taxonomy: TaxonomySchema = parse_taxonomy(schema_path, cache, imported_schema_uris)

Expand Down

0 comments on commit 6920a6e

Please sign in to comment.