Skip to content

Commit 60ccf89

Browse files
pawromanvarkor
andauthored
Apply suggestions from code review
Co-Authored-By: varkor <[email protected]>
1 parent 2c9c978 commit 60ccf89

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/libcore/unicode/unicode.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
try:
3737
# completely optional type hinting
3838
# (Python 2 compatible using comments,
39-
# see: https://mypy.readthedocs.io/en/latest/python2.html)
39+
# see: https://mypy.readthedocs.io/en/latest/python2.html)
4040
# This is very helpful in typing-aware IDE like PyCharm.
4141
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Set, Tuple
4242
except ImportError:
@@ -95,7 +95,8 @@ class UnicodeFiles(object):
9595
"Cc": ["C"], "Cf": ["C"], "Cs": ["C"], "Co": ["C"], "Cn": ["C"],
9696
}
9797

98-
# this is the surrogate codepoints range (both ends inclusive)
98+
# This is the (inclusive) range of surrogate codepoints.
99+
# These are not valid Rust characters.
99100
# - they are not valid Rust characters
100101
SURROGATE_CODEPOINTS_RANGE = (0xd800, 0xdfff)
101102

@@ -122,7 +123,7 @@ def fetch_files(version=None):
122123
"""
123124
Fetch all the Unicode files from unicode.org.
124125
125-
This will use cached files (stored in FETCH_DIR) if they exist,
126+
This will use cached files (stored in `FETCH_DIR`) if they exist,
126127
creating them if they don't. In any case, the Unicode version
127128
is always returned.
128129
@@ -797,7 +798,7 @@ def parse_args():
797798
parser = argparse.ArgumentParser(description=__doc__)
798799
parser.add_argument("-v", "--version", default=None, type=str,
799800
help="Unicode version to use (if not specified,"
800-
" defaults to latest available final release).")
801+
" defaults to latest release).")
801802

802803
return parser.parse_args()
803804

0 commit comments

Comments
 (0)