summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/pyparse.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-02-20 07:46:47 (GMT)
committerBenjamin Peterson <benjamin@python.org>2018-02-20 07:46:47 (GMT)
commitbab4fe320ad2e24c1084fd57d2059ef342688aa9 (patch)
tree72e1c61760d3fb4392d56baa8ef5caafbc3b7534 /Lib/idlelib/pyparse.py
parenta3d6c1b23b8a49b5003fdbd115d3598fe3d4c4bf (diff)
downloadcpython-bab4fe320ad2e24c1084fd57d2059ef342688aa9.zip
cpython-bab4fe320ad2e24c1084fd57d2059ef342688aa9.tar.gz
cpython-bab4fe320ad2e24c1084fd57d2059ef342688aa9.tar.bz2
closes bpo-32859: Don't retry dup3() if it is not available at runtime (GH-5708)
os.dup2() tests for dup3() system call availability at runtime, but doesn't remember the result across calls, repeating the test on each call with inheritable=False. Since the caller of os.dup2() is expected to hold the GIL, fix this by making the variable holding the test result static. (cherry picked from commit b3caf388a0418f6c031e4dbdcc0c1ce7e5cc36bd) Co-authored-by: Alexey Izbyshev <izbyshev@users.noreply.github.com>
Diffstat (limited to 'Lib/idlelib/pyparse.py')
0 files changed, 0 insertions, 0 deletions