Skip to content

Commit

Permalink
remove deprecated usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Mar 5, 2025
1 parent 108c978 commit 3d9e927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/pants/backend/openapi/sample/resources.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Copyright 2022 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).

import importlib.resources as pkg_resources
import importlib.resources

from pants.backend.openapi import sample

PETSTORE_SAMPLE_SPEC = pkg_resources.read_text(sample.__name__, "petstore_spec.yaml")
PETSTORE_SAMPLE_SPEC = importlib.resources.files(sample.__name__).joinpath("petstore_spec.yaml").read_text()

0 comments on commit 3d9e927

Please sign in to comment.