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