summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-04-17 18:13:18 +0200
committerSviatoslav Sydorenko <wk@sydorenko.org.ua>2020-04-17 18:13:18 +0200
commitbc1dd5a5d9be7ad613a6b23ac83938936a4509a9 (patch)
tree32fd37a51b7da955dc0574f441aba41f77732fc0
parent8c2ed23ab2fa785678a0493696f549a65ad8c5eb (diff)
downloadcherrypy-git-bc1dd5a5d9be7ad613a6b23ac83938936a4509a9.tar.gz
Reflow the comment in _make_content_disposition
This fixes the lines exceeding 79 chars limit
-rw-r--r--cherrypy/lib/static.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/cherrypy/lib/static.py b/cherrypy/lib/static.py
index f1c96319..66a5a947 100644
--- a/cherrypy/lib/static.py
+++ b/cherrypy/lib/static.py
@@ -35,12 +35,12 @@ def _make_content_disposition(disposition, file_name):
This function implements the recommendations of :rfc:`6266#appendix-D`.
See this and related answers: https://stackoverflow.com/a/8996249/2173868.
"""
- # As normalization algorithm for `unicodedata` is used composed form (NFC and NFKC)
- # with compatibility equivalence criteria (NFK), so "NFKC" is the one.
- # It first applies the compatibility decomposition, followed by the canonical
- # composition. Should be displayed in the same manner, should be treated in
- # the same way by applications such as alphabetizing names or searching,
- # and may be substituted for each other.
+ # As normalization algorithm for `unicodedata` is used composed form (NFC
+ # and NFKC) with compatibility equivalence criteria (NFK), so "NFKC" is the
+ # one. It first applies the compatibility decomposition, followed by the
+ # canonical composition. Should be displayed in the same manner, should be
+ # treated in the same way by applications such as alphabetizing names or
+ # searching, and may be substituted for each other.
# See: https://en.wikipedia.org/wiki/Unicode_equivalence.
ascii_name = (
unicodedata.normalize('NFKC', file_name).