Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
6803dc28
Commit
6803dc28
authored
Apr 23, 2011
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused private function
parent
8c52027e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
16 deletions
+0
-16
Lib/ctypes/util.py
Lib/ctypes/util.py
+0
-16
No files found.
Lib/ctypes/util.py
View file @
6803dc28
...
...
@@ -172,22 +172,6 @@ elif os.name == "posix":
else:
def _findLib_ldconfig(name):
# XXX assuming GLIBC'
s
ldconfig
(
with
option
-
p
)
expr
=
r'/[^\
(
\)\
s]*li
b%s\
.[^
\(\
)
\s]*'
%
re
.
escape
(
name
)
with
contextlib
.
closing
(
os
.
popen
(
'/sbin/ldconfig -p 2>/dev/null'
))
as
f
:
data
=
f
.
read
()
res
=
re
.
search
(
expr
,
data
)
if
not
res
:
# Hm, this works only for libs needed by the python executable.
cmd
=
'ldd %s 2>/dev/null'
%
sys
.
executable
with
contextlib
.
closing
(
os
.
popen
(
cmd
))
as
f
:
data
=
f
.
read
()
res
=
re
.
search
(
expr
,
data
)
if
not
res
:
return
None
return
res
.
group
(
0
)
def _findSoname_ldconfig(name):
import struct
if struct.calcsize('
l
') == 4:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment