File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -311,14 +311,14 @@ def imports_closure(
311
311
# path, and the target import doesn't have : (as in a curie or a URI)
312
312
# we prepend the relative path. This WILL make the key in the `schema_map` not
313
313
# equal to the literal text specified in the importing schema, but this is
314
- # essential to sensible deduplication: eg . for
314
+ # essential to sensible deduplication: e.g . for
315
315
# - main.yaml (imports ./types.yaml, ./subdir/subschema.yaml)
316
316
# - types.yaml
317
317
# - subdir/subschema.yaml (imports ./types.yaml)
318
318
# - subdir/types.yaml
319
319
# we should treat the two `types.yaml` as separate schemas from the POV of the
320
320
# origin schema.
321
- if sn . startswith ( "." ) and ":" not in i :
321
+ if "/" in sn and ":" not in i :
322
322
if WINDOWS :
323
323
# This cannot be simplified. os.path.normpath() must be called before .as_posix()
324
324
i = PurePath (
You can’t perform that action at this time.
0 commit comments