From 5f3c56e1889ccafe49633e7bc7871b3b34ce2a8a Mon Sep 17 00:00:00 2001 From: Pi Delport Date: Tue, 12 Mar 2019 21:25:09 +0200 Subject: [PATCH] Fix some typos --- docs/html/conf.py | 2 +- src/pip/_internal/__init__.py | 2 +- src/pip/_internal/cli/cmdoptions.py | 2 +- src/pip/_internal/configuration.py | 2 +- src/pip/_internal/index.py | 2 +- src/pip/_internal/req/req_file.py | 2 +- src/pip/_internal/req/req_install.py | 2 +- src/pip/_internal/utils/ui.py | 2 +- src/pip/_internal/vcs/git.py | 2 +- tests/unit/test_utils.py | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/html/conf.py b/docs/html/conf.py index bf8ed022808..34109a30d50 100644 --- a/docs/html/conf.py +++ b/docs/html/conf.py @@ -83,7 +83,7 @@ break # We have this here because readthedocs plays tricks sometimes and there seems -# to be a hiesenbug, related to the version of pip discovered. This is here to +# to be a heisenbug, related to the version of pip discovered. This is here to # help debug that if someone decides to do that in the future. print(version) diff --git a/src/pip/_internal/__init__.py b/src/pip/_internal/__init__.py index 276124df0b1..9c1637cfc11 100755 --- a/src/pip/_internal/__init__.py +++ b/src/pip/_internal/__init__.py @@ -13,7 +13,7 @@ # isn't available. requests unconditionally imports urllib3's socks contrib # module, triggering this warning. The warning breaks DEP-8 tests (because of # the stderr output) and is just plain annoying in normal usage. I don't want -# to add socks as yet another dependency for pip, nor do I want to allow-stder +# to add socks as yet another dependency for pip, nor do I want to allow-stderr # in the DEP-8 tests, so just suppress the warning. pdb tells me this has to # be done before the import of pip.vcs. from pip._vendor.urllib3.exceptions import DependencyWarning diff --git a/src/pip/_internal/cli/cmdoptions.py b/src/pip/_internal/cli/cmdoptions.py index 8023eb965bf..a09e38f7082 100644 --- a/src/pip/_internal/cli/cmdoptions.py +++ b/src/pip/_internal/cli/cmdoptions.py @@ -101,7 +101,7 @@ def check_dist_restriction(options, check_target=False): # Installations or downloads using dist restrictions must not combine # source distributions and dist-specific wheels, as they are not - # gauranteed to be locally compatible. + # guaranteed to be locally compatible. if dist_restriction_set and sdist_dependencies_allowed: raise CommandError( "When restricting platform and interpreter constraints using " diff --git a/src/pip/_internal/configuration.py b/src/pip/_internal/configuration.py index 36f359bb5b5..b199fa7007d 100644 --- a/src/pip/_internal/configuration.py +++ b/src/pip/_internal/configuration.py @@ -203,7 +203,7 @@ def unset_value(self, key): def save(self): # type: () -> None - """Save the currentin-memory state. + """Save the current in-memory state. """ self._ensure_have_load_only() diff --git a/src/pip/_internal/index.py b/src/pip/_internal/index.py index 8bdf041fdf0..f251c4b58b6 100644 --- a/src/pip/_internal/index.py +++ b/src/pip/_internal/index.py @@ -52,7 +52,7 @@ from pip._internal.download import PipSession SecureOrigin = Tuple[str, str, Optional[str]] - BuildTag = Tuple[Any, ...] # either emply tuple or Tuple[int, str] + BuildTag = Tuple[Any, ...] # either empty tuple or Tuple[int, str] CandidateSortingKey = Tuple[int, _BaseVersion, BuildTag, Optional[int]] __all__ = ['FormatControl', 'PackageFinder'] diff --git a/src/pip/_internal/req/req_file.py b/src/pip/_internal/req/req_file.py index 3260e8d7509..fb51ace0a69 100644 --- a/src/pip/_internal/req/req_file.py +++ b/src/pip/_internal/req/req_file.py @@ -364,7 +364,7 @@ def expand_env_variables(lines_enum): 1. Strings that contain a `$` aren't accidentally (partially) expanded. 2. Ensure consistency across platforms for requirement files. - These points are the result of a discusssion on the `github pull + These points are the result of a discussion on the `github pull request #3514 `_. Valid characters in variable names follow the `POSIX standard diff --git a/src/pip/_internal/req/req_install.py b/src/pip/_internal/req/req_install.py index ddca56861ae..8d5f33b357c 100644 --- a/src/pip/_internal/req/req_install.py +++ b/src/pip/_internal/req/req_install.py @@ -58,7 +58,7 @@ class InstallRequirement(object): """ Represents something that may be installed later on, may have information - about where to fetch the relavant requirement and also contains logic for + about where to fetch the relevant requirement and also contains logic for installing the said requirement. """ diff --git a/src/pip/_internal/utils/ui.py b/src/pip/_internal/utils/ui.py index 72b7e4afc33..ae1cbed0614 100644 --- a/src/pip/_internal/utils/ui.py +++ b/src/pip/_internal/utils/ui.py @@ -165,7 +165,7 @@ def __init__(self, *args, **kwargs): # The Windows terminal does not support the hide/show cursor ANSI codes # even with colorama. So we'll ensure that hide_cursor is False on # Windows. - # This call neds to go before the super() call, so that hide_cursor + # This call needs to go before the super() call, so that hide_cursor # is set in time. The base progress bar class writes the "hide cursor" # code to the terminal in its init, so if we don't set this soon # enough, we get a "hide" with no corresponding "show"... diff --git a/src/pip/_internal/vcs/git.py b/src/pip/_internal/vcs/git.py index dd2bd61e81d..0f4e81bb00b 100644 --- a/src/pip/_internal/vcs/git.py +++ b/src/pip/_internal/vcs/git.py @@ -73,7 +73,7 @@ def get_git_version(self): version = version[len(VERSION_PFX):].split()[0] else: version = '' - # get first 3 positions of the git version becasue + # get first 3 positions of the git version because # on windows it is x.y.z.windows.t, and this parses as # LegacyVersion which always smaller than a Version. version = '.'.join(version.split('.')[:3]) diff --git a/tests/unit/test_utils.py b/tests/unit/test_utils.py index 72693fc115b..510b36a2aff 100644 --- a/tests/unit/test_utils.py +++ b/tests/unit/test_utils.py @@ -619,7 +619,7 @@ def names(): # All names are going to be longer than our original assert min(len(x) for x in some_names) > 1 - # All names are going to be unqiue + # All names are going to be unique assert len(some_names) == len(set(some_names)) if len(name) == 2: