Skip to content

Commit

Permalink
Adapt to py3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Mar 12, 2024
1 parent 4ebf7a7 commit a3b6663
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions tableschema/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ def find_module(self, fullname, path=None):
return self
return None

def find_spec(self, fullname, path=None, target=None):
return self.find_module(fullname, path)

def load_module(self, fullname):
if fullname in sys.modules:
return sys.modules[fullname]
Expand Down

0 comments on commit a3b6663

Please sign in to comment.