diff options
| author | Paweł Romanowski <pawroman@gmail.com> | 2019-06-10 20:45:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-10 20:45:58 +0200 |
| commit | 60ccf89693037b3c010b027081d253b9c69a304c (patch) | |
| tree | 3a59240bb3f4394c96dd988393695e8ce549e93b | |
| parent | 2c9c978e1d4a3541d8df593346c7520c8ef4d69e (diff) | |
| download | rust-60ccf89693037b3c010b027081d253b9c69a304c.tar.gz rust-60ccf89693037b3c010b027081d253b9c69a304c.zip | |
Apply suggestions from code review
Co-Authored-By: varkor <github@varkor.com>
| -rwxr-xr-x | src/libcore/unicode/unicode.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libcore/unicode/unicode.py b/src/libcore/unicode/unicode.py index f66e8229910..9eaf6eb9baa 100755 --- a/src/libcore/unicode/unicode.py +++ b/src/libcore/unicode/unicode.py @@ -36,7 +36,7 @@ except ImportError: try: # completely optional type hinting # (Python 2 compatible using comments, - # see: https://mypy.readthedocs.io/en/latest/python2.html) + # see: https://mypy.readthedocs.io/en/latest/python2.html) # This is very helpful in typing-aware IDE like PyCharm. from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Set, Tuple except ImportError: @@ -95,7 +95,8 @@ EXPANDED_CATEGORIES = { "Cc": ["C"], "Cf": ["C"], "Cs": ["C"], "Co": ["C"], "Cn": ["C"], } -# this is the surrogate codepoints range (both ends inclusive) +# This is the (inclusive) range of surrogate codepoints. +# These are not valid Rust characters. # - they are not valid Rust characters SURROGATE_CODEPOINTS_RANGE = (0xd800, 0xdfff) @@ -122,7 +123,7 @@ def fetch_files(version=None): """ Fetch all the Unicode files from unicode.org. - This will use cached files (stored in FETCH_DIR) if they exist, + This will use cached files (stored in `FETCH_DIR`) if they exist, creating them if they don't. In any case, the Unicode version is always returned. @@ -797,7 +798,7 @@ def parse_args(): parser = argparse.ArgumentParser(description=__doc__) parser.add_argument("-v", "--version", default=None, type=str, help="Unicode version to use (if not specified," - " defaults to latest available final release).") + " defaults to latest release).") return parser.parse_args() |
