@@ -96,9 +96,9 @@ The module defines the following user-callable items:
96
96
Added *errors * parameter.
97
97
98
98
99
- .. function :: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None)
99
+ .. class :: SpooledTemporaryFile(max_size=0, mode='w+b', buffering=-1, encoding=None, newline=None, suffix=None, prefix=None, dir=None, *, errors=None)
100
100
101
- This function operates exactly as :func: `TemporaryFile ` does, except that
101
+ This class operates exactly as :func: `TemporaryFile ` does, except that
102
102
data is spooled in memory until the file size exceeds *max_size *, or
103
103
until the file's :func: `fileno ` method is called, at which point the
104
104
contents are written to disk and operation proceeds as with
@@ -121,9 +121,9 @@ The module defines the following user-callable items:
121
121
Added *errors * parameter.
122
122
123
123
124
- .. function :: TemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False)
124
+ .. class :: TemporaryDirectory(suffix=None, prefix=None, dir=None, ignore_cleanup_errors=False)
125
125
126
- This function securely creates a temporary directory using the same rules as :func: `mkdtemp `.
126
+ This class securely creates a temporary directory using the same rules as :func: `mkdtemp `.
127
127
The resulting object can be used as a context manager (see
128
128
:ref: `tempfile-examples `). On completion of the context or destruction
129
129
of the temporary directory object, the newly created temporary directory
0 commit comments