From 31591d3c032f4e14a5c8847f021e6dc597e14615 Mon Sep 17 00:00:00 2001 From: Ram Srivatsa Kannan Date: Thu, 21 Mar 2024 12:53:33 -0700 Subject: [PATCH] Remove linting error for deprecated warning --- service_capacity_modeling/hardware/profiles/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_capacity_modeling/hardware/profiles/__init__.py b/service_capacity_modeling/hardware/profiles/__init__.py index faf02d6..bcff348 100644 --- a/service_capacity_modeling/hardware/profiles/__init__.py +++ b/service_capacity_modeling/hardware/profiles/__init__.py @@ -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