Note that this method is provided as a convenience and may not always
format the message the way you want. For example, by default it does
not do the mangling of lines that begin with ``From`` that is
- required by the unix mbox format. For more flexibility, instantiate a
+ required by the Unix mbox format. For more flexibility, instantiate a
:class:`~email.generator.Generator` instance and use its
:meth:`~email.generator.Generator.flatten` method directly. For example::
Note that this method is provided as a convenience and may not always
format the message the way you want. For example, by default it does
not do the mangling of lines that begin with ``From`` that is
- required by the unix mbox format. For more flexibility, instantiate a
+ required by the Unix mbox format. For more flexibility, instantiate a
:class:`~email.generator.BytesGenerator` instance and use its
:meth:`~email.generator.BytesGenerator.flatten` method directly.
For example::
defaults to the value of the :attr:`~email.policy.Policy.mangle_from_`
setting of the *policy* (which is ``True`` for the
:data:`~email.policy.compat32` policy and ``False`` for all others).
- *mangle_from_* is intended for use when messages are stored in unix mbox
+ *mangle_from_* is intended for use when messages are stored in Unix mbox
format (see :mod:`mailbox` and `WHY THE CONTENT-LENGTH FORMAT IS BAD
<https://www.jwz.org/doc/content-length.html>`_).
defaults to the value of the :attr:`~email.policy.Policy.mangle_from_`
setting of the *policy* (which is ``True`` for the
:data:`~email.policy.compat32` policy and ``False`` for all others).
- *mangle_from_* is intended for use when messages are stored in unix mbox
+ *mangle_from_* is intended for use when messages are stored in Unix mbox
format (see :mod:`mailbox` and `WHY THE CONTENT-LENGTH FORMAT IS BAD
<https://www.jwz.org/doc/content-length.html>`_).
subprocess. See :issue:`33725`.
.. versionchanged:: 3.4
- *spawn* added on all unix platforms, and *forkserver* added for
- some unix platforms.
+ *spawn* added on all Unix platforms, and *forkserver* added for
+ some Unix platforms.
Child processes no longer inherit all of the parents inheritable
handles on Windows.
module. The path parameters can be passed as strings, or bytes, or any object
implementing the :class:`os.PathLike` protocol.
-Unlike a unix shell, Python does not do any *automatic* path expansions.
+Unlike a Unix shell, Python does not do any *automatic* path expansions.
Functions such as :func:`expanduser` and :func:`expandvars` can be invoked
explicitly when an application desires shell-like path expansion. (See also
the :mod:`glob` module.)
.. function:: bind_unix_socket(sock, addr)
- Bind a unix socket, raising :exc:`unittest.SkipTest` if
+ Bind a Unix socket, raising :exc:`unittest.SkipTest` if
:exc:`PermissionError` is raised.
family on OS X. (Contributed by Michael Goderbauer in :issue:`13777`.)
* New function :func:`~socket.sethostname` allows the hostname to be set
- on unix systems if the calling process has sufficient privileges.
+ on Unix systems if the calling process has sufficient privileges.
(Contributed by Ross Lagerwall in :issue:`10866`.)