Skip to content

Commit

Permalink
Remove usage of deprecated Python dl module (#2369)
Browse files Browse the repository at this point in the history
  • Loading branch information
pepone authored Jun 28, 2024
1 parent 9d8bb93 commit 0201877
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions python/python/Ice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,7 @@
_dlopenflags = -1
try:
_dlopenflags = sys.getdlopenflags()

try:
import dl

sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
except ImportError:
#
# If the dl module is not available and we're running on a Linux
# platform, use the hard coded value of RTLD_NOW|RTLD_GLOBAL.
#
if sys.platform.startswith("linux"):
sys.setdlopenflags(258)
pass
sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL)

except AttributeError:
#
Expand Down

0 comments on commit 0201877

Please sign in to comment.