Skip to content

Commit 84c51ee

Browse files
committed
restore original_doc
1 parent c889cf2 commit 84c51ee

File tree

3 files changed

+12
-6
lines changed

3 files changed

+12
-6
lines changed

cwl_utils/parser/cwl_v1_0.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Union,
2626
cast,
2727
)
28-
from urllib.parse import quote, urlparse, urlsplit, urlunsplit, urldefrag
28+
from urllib.parse import quote, urldefrag, urlparse, urlsplit, urlunsplit
2929
from urllib.request import pathname2url
3030

3131
from rdflib import Graph
@@ -35,7 +35,7 @@
3535
from schema_salad.exceptions import SchemaSaladException, ValidationException
3636
from schema_salad.fetcher import DefaultFetcher, Fetcher, MemoryCachingFetcher
3737
from schema_salad.sourceline import SourceLine, add_lc_filename
38-
from schema_salad.utils import yaml_no_ts, CacheType # requires schema-salad v8.2+
38+
from schema_salad.utils import CacheType, yaml_no_ts # requires schema-salad v8.2+
3939

4040
_vocab: Dict[str, str] = {}
4141
_rvocab: Dict[str, str] = {}
@@ -74,6 +74,8 @@ def __init__(
7474
) -> None:
7575
"""Create a LoadingOptions object."""
7676

77+
self.original_doc = original_doc
78+
7779
if idx is not None:
7880
self.idx = idx
7981
else:

cwl_utils/parser/cwl_v1_1.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Union,
2626
cast,
2727
)
28-
from urllib.parse import quote, urlparse, urlsplit, urlunsplit, urldefrag
28+
from urllib.parse import quote, urldefrag, urlparse, urlsplit, urlunsplit
2929
from urllib.request import pathname2url
3030

3131
from rdflib import Graph
@@ -35,7 +35,7 @@
3535
from schema_salad.exceptions import SchemaSaladException, ValidationException
3636
from schema_salad.fetcher import DefaultFetcher, Fetcher, MemoryCachingFetcher
3737
from schema_salad.sourceline import SourceLine, add_lc_filename
38-
from schema_salad.utils import yaml_no_ts, CacheType # requires schema-salad v8.2+
38+
from schema_salad.utils import CacheType, yaml_no_ts # requires schema-salad v8.2+
3939

4040
_vocab: Dict[str, str] = {}
4141
_rvocab: Dict[str, str] = {}
@@ -74,6 +74,8 @@ def __init__(
7474
) -> None:
7575
"""Create a LoadingOptions object."""
7676

77+
self.original_doc = original_doc
78+
7779
if idx is not None:
7880
self.idx = idx
7981
else:

cwl_utils/parser/cwl_v1_2.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
Union,
2626
cast,
2727
)
28-
from urllib.parse import quote, urlparse, urlsplit, urlunsplit, urldefrag
28+
from urllib.parse import quote, urldefrag, urlparse, urlsplit, urlunsplit
2929
from urllib.request import pathname2url
3030

3131
from rdflib import Graph
@@ -35,7 +35,7 @@
3535
from schema_salad.exceptions import SchemaSaladException, ValidationException
3636
from schema_salad.fetcher import DefaultFetcher, Fetcher, MemoryCachingFetcher
3737
from schema_salad.sourceline import SourceLine, add_lc_filename
38-
from schema_salad.utils import yaml_no_ts, CacheType # requires schema-salad v8.2+
38+
from schema_salad.utils import CacheType, yaml_no_ts # requires schema-salad v8.2+
3939

4040
_vocab: Dict[str, str] = {}
4141
_rvocab: Dict[str, str] = {}
@@ -74,6 +74,8 @@ def __init__(
7474
) -> None:
7575
"""Create a LoadingOptions object."""
7676

77+
self.original_doc = original_doc
78+
7779
if idx is not None:
7880
self.idx = idx
7981
else:

0 commit comments

Comments
 (0)