Skip to content

Commit

Permalink
FIX: Fix importing importlib.resources for python>=3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed Apr 25, 2024
1 parent 17bca39 commit 4128b9f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Empty file added twined/schema/__init__.py
Empty file.
9 changes: 8 additions & 1 deletion twined/twine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
import json as jsonlib
import logging
import os
import importlib_resources
from dotenv import load_dotenv
from jsonschema import ValidationError, validate as jsonschema_validate


try:
# python >= 3.9
import importlib.resources as importlib_resources
except ModuleNotFoundError:
# python < 3.9
import importlib_resources

from . import exceptions
from .utils import load_json, trim_suffix

Expand Down

0 comments on commit 4128b9f

Please sign in to comment.