Skip to content

Commit

Permalink
Improve readability of formataddr docstring (pythonGH-20963)
Browse files Browse the repository at this point in the history
For me as a non native English speaker, the sentence with its embedded clause was very hard to understand.

modified:   Lib/email/utils.py

Automerge-Triggered-By: @csabella
(cherry picked from commit 66a65ba)

Co-authored-by: Jürgen Gmach <[email protected]>
  • Loading branch information
jugmac00 authored and miss-islington committed Jun 19, 2020
1 parent e805618 commit 401d223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/email/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def formataddr(pair, charset='utf-8'):
If the first element of pair is false, then the second element is
returned unmodified.
Optional charset if given is the character set that is used to encode
The optional charset is the character set that is used to encode
realname in case realname is not ASCII safe. Can be an instance of str or
a Charset-like object which has a header_encode method. Default is
'utf-8'.
Expand Down

0 comments on commit 401d223

Please sign in to comment.