Skip to content

Commit

Permalink
NamedTemporaryFile -> TemporaryFile
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Sep 8, 2019
1 parent f58428e commit a7762f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stdio_mgr/stdio_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
TextIOBase,
TextIOWrapper,
)
from tempfile import NamedTemporaryFile
from tempfile import TemporaryFile

from .types import InjectSysIoContextManager

Expand Down Expand Up @@ -69,7 +69,7 @@ class _PersistedFileIO(FileIO):

def __new__(cls, closure_callback):
"""Store callback invoked before close."""
f = NamedTemporaryFile(mode="w+b")
f = TemporaryFile(mode="w+b")
self = super().__new__(cls, f.fileno(), mode="w+b")
self._f = f
self._f.__enter__()
Expand Down

0 comments on commit a7762f1

Please sign in to comment.