File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,12 +35,12 @@ def _make_content_disposition(disposition, file_name):
3535 This function implements the recommendations of :rfc:`6266#appendix-D`.
3636 See this and related answers: https://stackoverflow.com/a/8996249/2173868.
3737 """
38- # As normalization algorithm for `unicodedata` is used composed form (NFC and NFKC)
39- # with compatibility equivalence criteria (NFK), so "NFKC" is the one.
40- # It first applies the compatibility decomposition, followed by the canonical
41- # composition. Should be displayed in the same manner, should be treated in
42- # the same way by applications such as alphabetizing names or searching,
43- # and may be substituted for each other.
38+ # As normalization algorithm for `unicodedata` is used composed form (NFC
39+ # and NFKC) with compatibility equivalence criteria (NFK), so "NFKC" is the
40+ # one. It first applies the compatibility decomposition, followed by the
41+ # canonical composition. Should be displayed in the same manner, should be
42+ # treated in the same way by applications such as alphabetizing names or
43+ # searching, and may be substituted for each other.
4444 # See: https://en.wikipedia.org/wiki/Unicode_equivalence.
4545 ascii_name = (
4646 unicodedata .normalize ('NFKC' , file_name ).
You can’t perform that action at this time.
0 commit comments