8000 Update some www.unicode.org URLs to use HTTPS. (GH-18912) · python/cpython@51796e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51796e5

Browse files
authored
Update some www.unicode.org URLs to use HTTPS. (GH-18912)
1 parent 051b9d0 commit 51796e5

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

Doc/howto/unicode.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ UTF-8 has several convenient properties:
156156
References
157157
----------
158158

159-
The `Unicode Consortium site <http://www.unicode.org>`_ has character charts, a
159+
The `Unicode Consortium site <https://www.unicode.org>`_ has character charts, a
160160
glossary, and PDF versions of the Unicode specification. Be prepared for some
161-
difficult reading. `A chronology <http://www.unicode.org/history/>`_ of the
161+
difficult reading. `A chronology <https://www.unicode.org/history/>`_ of the
162162
origin and development of Unicode is also available on the site.
163163

164164
On the Computerphile Youtube channel, Tom Scott briefly
@@ -393,7 +393,7 @@ These are grouped into categories such as "Letter", "Number", "Punctuation", or
393393
from the above output, ``'Ll'`` means 'Letter, lowercase', ``'No'`` means
394394
"Number, other", ``'Mn'`` is "Mark, nonspacing", and ``'So'`` is "Symbol,
395395
other". See
396-
`the General Category Values section of the Unicode Character Database documentation <http://www.unicode.org/reports/tr44/#General_Category_Values>`_ for a
396+
`the General Category Values section of the Unicode Character Database documentation <https://www.unicode.org/reports/tr44/#General_Category_Values>`_ for a
397397
list of category codes.
398398

399399

Doc/library/stdtypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ Notes:
352352
The numeric literals accepted include the digits ``0`` to ``9`` or any
353353
Unicode equivalent (code points with the ``Nd`` property).
354354

355-
See http://www.unicode.org/Public/13.0.0/ucd/extracted/DerivedNumericType.txt
355+
See https://www.unicode.org/Public/13.0.0/ucd/extracted/DerivedNumericType.txt
356356
for a complete list of code points with the ``Nd`` property.
357357

358358

Doc/library/unicodedata.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
This module provides access to the Unicode Character Database (UCD) which
1919
defines character properties for all Unicode characters. The data contained in
2020
this database is compiled from the `UCD version 13.0.0
21-
<http://www.unicode.org/Public/13.0.0/ucd>`_.
21+
<https://www.unicode.org/Public/13.0.0/ucd>`_.
2222

2323
The module uses the same names and symbols as defined by Unicode
2424
Standard Annex #44, `"Unicode Character Database"
@@ -175,6 +175,6 @@ Examples:
175175

176176
.. rubric:: Footnotes
177177

178-
.. [#] http://www.unicode.org/Public/13.0.0/ucd/NameAliases.txt
178+
.. [#] https://www.unicode.org/Public/13.0.0/ucd/NameAliases.txt
179179
180-
.. [#] http://www.unicode.org/Public/13.0.0/ucd/NamedSequences.txt
180+
.. [#] https://www.unicode.org/Public/13.0.0/ucd/NamedSequences.txt

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ The Unicode category codes mentioned above stand for:
316316
* *Nd* - decimal numbers
317317
* *Pc* - connector punctuations
318318
* *Other_ID_Start* - explicit list of characters in `PropList.txt
319-
<http://www.unicode.org/Public/13.0.0/ucd/PropList.txt>`_ to support backwards
319+
<https://www.unicode.org/Public/13.0.0/ucd/PropList.txt>`_ to support backwards
320320
compatibility
321321
* *Other_ID_Continue* - likewise
322322

@@ -934,4 +934,4 @@ occurrence outside string literals and comments is an unconditional error:
934934
935935
.. rubric:: Footnotes
936936

937-
.. [#] http://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt
937+
.. [#] https://www.unicode.org/Public/11.0.0/ucd/NameAliases.txt

Lib/test/test_unicode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ def test_issue8271(self):
17521752
# Issue #8271: during the decoding of an invalid UTF-8 byte sequence,
17531753
# only the start byte and the continuation byte(s) are now considered
17541754
# invalid, instead of the number of bytes specified by the start byte.
1755-
# See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 95,
1755+
# See https://www.unicode.org/versions/Unicode5.2.0/ch03.pdf (page 95,
17561756
# table 3-8, Row 2) for more information about the algorithm used.
17571757
FFFD = '\ufffd'
17581758
sequences = [

Lib/test/test_unicodedata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_combining(self):
176176
self.assertRaises(TypeError, self.db.combining, 'xx')
177177

178178
def test_pr29(self):
179-
# http://www.unicode.org/review/pr-29.html
179+
# https://www.unicode.org/review/pr-29.html
180180
# See issues #1054943 and #10254.
181181
composed = ("\u0b47\u0300\u0b3e", "\u1100\u0300\u1161",
182182
'Li\u030dt-s\u1e73\u0301',

Objects/stringlib/codecs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ STRINGLIB(utf8_decode)(const char **inptr, const char *end,
153153
/* Decoding UTF-8 sequences in range \xED\xA0\x80-\xED\xBF\xBF
154154
will result in surrogates in range D800-DFFF. Surrogates are
155155
not valid UTF-8 so they are rejected.
156-
See http://www.unicode.org/versions/Unicode5.2.0/ch03.pdf
156+
See https://www.unicode.org/versions/Unicode5.2.0/ch03.pdf
157157
(table 3-7) and http://www.rfc-editor.org/rfc/rfc3629.txt */
158158
goto InvalidContinuation1;
159159
}

Tools/unicode/makeunicodedata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,9 +893,9 @@ def open_data(template, version):
893893
import urllib.request
894894
if version == '3.2.0':
895895
# irregular url structure
896-
url = ('http://www.unicode.org/Public/3.2-Update/'+template) % ('-'+version,)
896+
url = ('https://www.unicode.org/Public/3.2-Update/'+template) % ('-'+version,)
897897
else:
898-
url = ('http://www.unicode.org/Public/%s/ucd/'+template) % (version, '')
898+
url = ('https://www.unicode.org/Public/%s/ucd/'+template) % (version, '')
899899
os.makedirs(DATA_DIR, exist_ok=True)
900900
urllib.request.urlretrieve(url, filename=local)
901901
if local.endswith('.txt'):

0 commit comments

Comments
 (0)
0