Skip to content

Commit

Permalink
remove os
Browse files Browse the repository at this point in the history
Signed-off-by: Ankita Katiyar <[email protected]>
  • Loading branch information
ankatiyar committed Jan 10, 2025
1 parent f7c965a commit cb57423
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ def setup(app):

def linkcode_resolve(domain, info):
"""Resolve a GitHub URL corresponding to Python object."""
import os
if domain != 'py':
return None

Expand Down Expand Up @@ -568,5 +567,4 @@ def linkcode_resolve(domain, info):
return None

return 'https://github.com/kedro-org/kedro/blob/main/kedro/%s#L%d#L%d' % (
os.path.relpath(filename, start=os.path.dirname(
kedro.__file__)), lineno, lineno + len(source) - 1)
Path(filename).relative_to(Path(kedro.__file__).parent), lineno, lineno + len(source) - 1)

0 comments on commit cb57423

Please sign in to comment.