Skip to content

Commit 3ab2372

Browse files
committed
bpo-41410: remove reference to truthy value
1 parent 077b7a8 commit 3ab2372

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Doc/library/tempfile.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,9 +175,8 @@ The module defines the following user-callable items:
175175
If you want to force a bytes return value with otherwise default behavior,
176176
pass ``suffix=b''``.
177177

178-
If *text* is specified and ``True`` (or a truthy value), the file is
179-
opened in text mode. Otherwise, (the default) the file is opened in
180-
binary mode.
178+
If *text* is specified and true, the file is opened in text mode.
179+
Otherwise, (the default) the file is opened in binary mode.
181180

182181
:func:`mkstemp` returns a tuple containing an OS-level handle to an open
183182
file (as would be returned by :func:`os.open`) and the absolute pathname

0 commit comments

Comments
 (0)