Commit 0d640c3e authored by Antoine Pitrou's avatar Antoine Pitrou

Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().

Patch by Sijin Joseph.
parent f82a5967
......@@ -137,9 +137,7 @@ elif os.name == "posix":
rv = f.close()
if rv == 10:
raise OSError('objdump command not found')
with contextlib.closing(os.popen(cmd)) as f:
data = f.read()
res = re.search(r'\sSONAME\s+([^\s]+)', data)
res = re.search(r'\sSONAME\s+([^\s]+)', dump)
if not res:
return None
return res.group(1)
......
......@@ -161,6 +161,9 @@ Core and Builtins
Library
-------
- Issue #12045: Avoid duplicate execution of command in ctypes.util._get_soname().
Patch by Sijin Joseph.
- Issue #10818: Remove the Tk GUI and the serve() function of the pydoc module,
pydoc -g has been deprecated in Python 3.2 and it has a new enhanced web
server.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment