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
  • Loading branch information
jugmac00 authored and fasihahmad committed Jun 29, 2020
1 parent 00fc1f4 commit c4fb656
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 c4fb656

Please sign in to comment.