From de0a4ac975915ee17d38f7aedabaabbaed81b888 Mon Sep 17 00:00:00 2001 From: "Kian-Meng, Ang" Date: Sat, 13 Nov 2021 14:45:43 +0800 Subject: [PATCH] Fix typos --- toolz/_version.py | 2 +- toolz/sandbox/core.py | 2 +- toolz/sandbox/tests/test_core.py | 2 +- versioneer.py | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/toolz/_version.py b/toolz/_version.py index 7d6792fd..6e0bd8ff 100644 --- a/toolz/_version.py +++ b/toolz/_version.py @@ -268,7 +268,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # TAG-NUM-gHEX mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) if not mo: - # unparseable. Maybe git-describe is misbehaving? + # unparsable. Maybe git-describe is misbehaving? pieces["error"] = ("unable to parse git-describe output: '%s'" % describe_out) return pieces diff --git a/toolz/sandbox/core.py b/toolz/sandbox/core.py index 915f06c2..55e09d74 100644 --- a/toolz/sandbox/core.py +++ b/toolz/sandbox/core.py @@ -40,7 +40,7 @@ class EqualityHashKey(object): [[], (), [1], [2], {}] **Warning:** don't change the equality value of an item already in a hash - containter. Unhashable types are unhashable for a reason. For example: + container. Unhashable types are unhashable for a reason. For example: >>> L1 = [1] ; L2 = [2] >>> s = set(map(EqualityHashDefault, [L1, L2])) diff --git a/toolz/sandbox/tests/test_core.py b/toolz/sandbox/tests/test_core.py index ca7cc68b..d2a5ed08 100644 --- a/toolz/sandbox/tests/test_core.py +++ b/toolz/sandbox/tests/test_core.py @@ -91,7 +91,7 @@ def _assert_initial_matches(a, b, n=10): == [['a', 'b', 'c'], [1, 2, 3]] # Can handle a finite number of infinite iterators (the naive unzip - # implementation `zip(*args)` impelementation fails on this example). + # implementation `zip(*args)` implementation fails on this example). a, b, c = unzip(zip(count(1), repeat(0), repeat(1))) _assert_initial_matches(a, count(1)) _assert_initial_matches(b, repeat(0)) diff --git a/versioneer.py b/versioneer.py index 8daee9f0..509b221a 100644 --- a/versioneer.py +++ b/versioneer.py @@ -180,7 +180,7 @@ `setup.cfg`, and `tox.ini`. Projects like these produce multiple PyPI distributions (and upload multiple independently-installable tarballs). * Source trees whose main purpose is to contain a C library, but which also - provide bindings to Python (and perhaps other langauges) in subdirectories. + provide bindings to Python (and perhaps other languages) in subdirectories. Versioneer will look for `.git` in parent directories, and most operations should get the right version string. However `pip` and `setuptools` have bugs @@ -688,7 +688,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # TAG-NUM-gHEX mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) if not mo: - # unparseable. Maybe git-describe is misbehaving? + # unparsable. Maybe git-describe is misbehaving? pieces["error"] = ("unable to parse git-describe output: '%%s'" %% describe_out) return pieces @@ -1080,7 +1080,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # TAG-NUM-gHEX mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) if not mo: - # unparseable. Maybe git-describe is misbehaving? + # unparsable. Maybe git-describe is misbehaving? pieces["error"] = ("unable to parse git-describe output: '%s'" % describe_out) return pieces