Skip to content

Commit

Permalink
Fix with python3.12 (#544)
Browse files Browse the repository at this point in the history
imp is deprecated in 3.4 and removed in 3.12. this caused safe eyes to
break on upgrading to fedora 39

Signed-off-by: Alyssa Rosenzweig <[email protected]>
  • Loading branch information
alyssarosenzweig authored Nov 30, 2023
1 parent cbfc0cc commit 777d486
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions safeeyes/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
"""

import errno
import imp
import inspect
import importlib
import json
Expand Down Expand Up @@ -355,7 +354,7 @@ def module_exist(module):
Check wther the given Python module exists or not.
"""
try:
imp.find_module(module)
importlib.util.find_spec(module)
return True
except ImportError:
return False
Expand Down

1 comment on commit 777d486

@blshkv
Copy link
Contributor

@blshkv blshkv commented on 777d486 Dec 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please release a new version.

Please sign in to comment.