From 8a84dc529c811eed6261fc06e8a3a48893b7fcd1 Mon Sep 17 00:00:00 2001 From: Steph Prince <40640337+stephprince@users.noreply.github.com> Date: Mon, 25 Nov 2024 12:09:57 -0800 Subject: [PATCH] update importlib in init --- src/pynwb/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pynwb/__init__.py b/src/pynwb/__init__.py index 3a4d95e98..32f9ed4d9 100644 --- a/src/pynwb/__init__.py +++ b/src/pynwb/__init__.py @@ -64,11 +64,7 @@ def unload_type_config(**kwargs): hdmf_unload_type_config(type_map=type_map) def __get_resources() -> dict: - try: - from importlib.resources import files - except ImportError: - # TODO: Remove when python 3.9 becomes the new minimum - from importlib_resources import files + from importlib.resources import files __location_of_this_file = files(__name__) __core_ns_file_name = 'nwb.namespace.yaml'