Skip to content

Commit

Permalink
no need for os.sep
Browse files Browse the repository at this point in the history
  • Loading branch information
kratsg committed Oct 24, 2023
1 parent 8fc2326 commit c6bbee6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyhf/schema/validator.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import numbers
import os
from pathlib import Path
from typing import Mapping, Union

Expand Down Expand Up @@ -79,7 +78,7 @@ def validate(
# * https://bugs.python.org/issue21039
# * https://github.com/python/cpython/issues/65238
resolver = jsonschema.RefResolver(
base_uri=f"{Path(variables.schemas).joinpath(version).as_uri()}{os.sep}",
base_uri=f"{Path(variables.schemas).joinpath(version).as_uri()}/",
referrer=schema_name,
store=variables.SCHEMA_CACHE,
)
Expand Down

0 comments on commit c6bbee6

Please sign in to comment.