From dca89671440bd60406adecd1221b44bdbeee0c5e Mon Sep 17 00:00:00 2001 From: Catherine Date: Thu, 4 Apr 2024 17:24:47 +0000 Subject: [PATCH] Fix PyPI package on Python>=3.9. --- pypi/yowasp_wavedrom/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pypi/yowasp_wavedrom/__init__.py b/pypi/yowasp_wavedrom/__init__.py index ce2fd04..b5c6627 100644 --- a/pypi/yowasp_wavedrom/__init__.py +++ b/pypi/yowasp_wavedrom/__init__.py @@ -2,7 +2,10 @@ import json import pathlib import quickjs -import importlib_resources +try: + import importlib.resources as importlib_resources +except ImportError: + import importlib_resources def render(source):