Skip to content

Commit 9978b08

Browse files
author
Jacob Roberts
committed
DOC: Update documentation for InTemporaryDirectory to mark it as not thread-safe
1 parent 7cfaebf commit 9978b08

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nibabel/tmpdirs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ def __exit__(self, exc, value, tb):
5151
class InTemporaryDirectory(TemporaryDirectory):
5252
""" Create, return, and change directory to a temporary directory
5353
54+
NOTE: This implementation is not thread-safe and should be used with
55+
caution by external consumers of this library.
56+
5457
Examples
5558
--------
5659
>>> import os

0 commit comments

Comments
 (0)