Skip to content

Commit

Permalink
Merge pull request #46 from jan-cerny/py312
Browse files Browse the repository at this point in the history
Stop using deprecated find_module method
  • Loading branch information
mildas authored Nov 8, 2023
2 parents 61f8214 + 1e401d6 commit 552403f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ctf/diff_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ def analyse_file(file_record):
for importer, package_name, _ in pkgutil.iter_modules([path.dirname(__file__)
+ "/analysis"]):
full_package_name = "%s.%s" % ("ctf.analysis", package_name)
module = importer.find_module(full_package_name).load_module(
full_package_name)
spec = importer.find_spec(full_package_name)
module = spec.loader.load_module()
analysis_modules.append(module)

# Get all classes with "is_valid" method
Expand Down

0 comments on commit 552403f

Please sign in to comment.