We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4025963 commit fb5ddebCopy full SHA for fb5ddeb
importlib_resources/_common.py
@@ -67,10 +67,14 @@ def from_package(package):
67
68
69
@contextlib.contextmanager
70
-def _tempfile(reader, suffix='',
71
- # gh-93353: Keep a reference to call os.remove() in late Python
72
- # finalization.
73
- *, _os_remove=os.remove):
+def _tempfile(
+ reader,
+ suffix='',
+ # gh-93353: Keep a reference to call os.remove() in late Python
74
+ # finalization.
75
+ *,
76
+ _os_remove=os.remove,
77
+):
78
# Not using tempfile.NamedTemporaryFile as it leads to deeper 'try'
79
# blocks due to the need to close the temporary file to work on Windows
80
# properly.
0 commit comments