diff options
| author | Joseph Myers <joseph@codesourcery.com> | 2018-10-29 17:49:07 +0000 |
|---|---|---|
| committer | Joseph Myers <joseph@codesourcery.com> | 2018-10-29 17:49:07 +0000 |
| commit | 954cf3c29bd0b32bd11d5235b7e36148b187e77d (patch) | |
| tree | a04ccceb5f3d1297961da55309aaf36b003be093 /stdlib/bits/stdlib.h | |
| parent | c6982f7efc1c70fe2d6160a87ee44d871ac85ab0 (diff) | |
| download | glibc-954cf3c29bd0b32bd11d5235b7e36148b187e77d.tar.xz glibc-954cf3c29bd0b32bd11d5235b7e36148b187e77d.zip | |
Use tempfile.TemporaryDirectory in conform/glibcconform.py.
Now that we require Python 3.4 or later, Python code creating
temporary directories can use tempfile.TemporaryDirectory in "with" to
have the directory deleted automatically instead of needing to use
try/finally to handle removing a directory created with
tempfile.mkdtemp. This patch does so in conform/glibcconform.py.
Tested for x86_64.
* conform/glibcconform.py: Do not import shutil.
(list_exported_functions): Use tempfile.TemporaryDirectory instead
of mkdtemp.
Diffstat (limited to 'stdlib/bits/stdlib.h')
0 files changed, 0 insertions, 0 deletions
