Skip to content

Commit

Permalink
Remove linting error for deprecated warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram Srivatsa Kannan committed Mar 21, 2024
1 parent 023466a commit 31591d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions service_capacity_modeling/hardware/profiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
from service_capacity_modeling.hardware import load_hardware_from_disk
from pathlib import Path


current_module = import_module(__name__)
common_profiles = {}

with pkg_resources.path(current_module, "profiles.txt") as shape_file:
with pkg_resources.path( # pylint: disable=deprecated-method
current_module, "profiles.txt"
) as shape_file:
shapes = Path(shape_file.parent, "shapes")
for fd in shapes.glob("**/*.json"):
shape = fd.stem
Expand Down

0 comments on commit 31591d3

Please sign in to comment.