Skip to content

Commit 6803dc2

Browse files
committed
Remove unused private function
1 parent 8c52027 commit 6803dc2

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Lib/ctypes/util.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -172,22 +172,6 @@ def find_library(name):
172172

173173
else:
174174

175-
def _findLib_ldconfig(name):
176-
# XXX assuming GLIBC's ldconfig (with option -p)
177-
expr = r'/[^\(\)\s]*lib%s\.[^\(\)\s]*' % re.escape(name)
178-
with contextlib.closing(os.popen('/sbin/ldconfig -p 2>/dev/null')) as f:
179-
data = f.read()
180-
res = re.search(expr, data)
181-
if not res:
182-
# Hm, this works only for libs needed by the python executable.
183-
cmd = 'ldd %s 2>/dev/null' % sys.executable
184-
with contextlib.closing(os.popen(cmd)) as f:
185-
data = f.read()
186-
res = re.search(expr, data)
187-
if not res:
188-
return None
189-
return res.group(0)
190-
191175
def _findSoname_ldconfig(name):
192176
import struct
193177
if struct.calcsize('l') == 4:

0 commit comments

Comments
 (0)