File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -137,9 +137,7 @@ def _get_soname(f):
137137 rv = f .close ()
138138 if rv == 10 :
139139 raise OSError ('objdump command not found' )
140- with contextlib .closing (os .popen (cmd )) as f :
141- data = f .read ()
142- res = re .search (r'\sSONAME\s+([^\s]+)' , data )
140+ res = re .search (r'\sSONAME\s+([^\s]+)' , dump )
143141 if not res :
144142 return None
145143 return res .group (1 )
Original file line number Diff line number Diff line change @@ -163,6 +163,9 @@ Library
163163
164164- Issue #11109 - New service_action method for BaseServer, used by
165165 ForkingMixin class for cleanup. Initial Patch by Justin Wark.
166+
167+ - Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().
168+ Patch by Sijin Joseph.
166169
167170- Issue #10818: Remove the Tk GUI and the serve() function of the pydoc module,
168171 pydoc -g has been deprecated in Python 3.2 and it has a new enhanced web
You can’t perform that action at this time.
0 commit comments