Skip to content

Commit 0201877

Browse files
authored
Remove usage of deprecated Python dl module (#2369)
1 parent 9d8bb93 commit 0201877

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

python/python/Ice/__init__.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,7 @@
2828
_dlopenflags = -1
2929
try:
3030
_dlopenflags = sys.getdlopenflags()
31-
32-
try:
33-
import dl
34-
35-
sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)
36-
except ImportError:
37-
#
38-
# If the dl module is not available and we're running on a Linux
39-
# platform, use the hard coded value of RTLD_NOW|RTLD_GLOBAL.
40-
#
41-
if sys.platform.startswith("linux"):
42-
sys.setdlopenflags(258)
43-
pass
31+
sys.setdlopenflags(os.RTLD_NOW | os.RTLD_GLOBAL)
4432

4533
except AttributeError:
4634
#

0 commit comments

Comments
 (0)