Skip to content

Commit

Permalink
Fixed the build for Python 3.9 and 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
vruusmann committed Nov 26, 2024
1 parent 80a1282 commit 8b24764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jpmml_evaluator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import importlib
import pickle

from abc import abstractmethod, abstractclassmethod, ABC
from importlib.resources import files
from pandas import DataFrame

import numpy
Expand Down Expand Up @@ -304,7 +304,7 @@ def make_evaluator(path, backend = "jpype", lax = False, locatable = False, repo

def _package_data_jars(package_data_dir):
jars = []
resources = importlib.resources.files(package_data_dir).iterdir()
resources = files(package_data_dir).iterdir()
for resource in resources:
resource = resource.resolve()
if resource.suffix == ".jar":
Expand Down

0 comments on commit 8b24764

Please sign in to comment.