Skip to content

Commit 218fe03

Browse files
authored
Merge pull request #3790 from jwilk/spelling
Fix a bunch of typos
2 parents a624498 + 6dc28c1 commit 218fe03

19 files changed

+33
-33
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ script: .travis/run.sh
4040
notifications:
4141
irc:
4242
channels:
43-
# This is set to a secure variable to prevent forks from notifiying the
43+
# This is set to a secure variable to prevent forks from notifying the
4444
# IRC channel whenever they fail a build. This can be removed when travis
4545
# implements https://github.com/travis-ci/travis-ci/issues/1094.
4646
# The actual value here is: irc.freenode.org#pypa-dev

CHANGES.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
:pull:`3495`).
7575

7676
* Correct the behavior where interpreter specific tags (such as cp34) were
77-
being used on later versions of the same interprter instead of only for that
77+
being used on later versions of the same interpreter instead of only for that
7878
specific interpreter (:issue:`3472`).
7979

8080
* Fix an issue where pip would erroneously install a 64 bit wheel on a 32 bit
@@ -272,11 +272,11 @@
272272
cached files to them.
273273

274274
* Move the pip version check until *after* any installs have been performed,
275-
thus removing the extraenous warning when upgrading pip.
275+
thus removing the extraneous warning when upgrading pip.
276276

277277
* Added debug logging when using a cached wheel.
278278

279-
* Respect platlib by default on platforms that have it separated from purlib.
279+
* Respect platlib by default on platforms that have it separated from purelib.
280280

281281
* Upgrade packaging to 15.3.
282282

@@ -485,7 +485,7 @@
485485
* Fix an issue where distutils installed projects were not actually uninstalled
486486
and deprecate attempting to uninstall them altogether.
487487

488-
* Retry deleting directories incase a process like an antivirus is holding the
488+
* Retry deleting directories in case a process like an antivirus is holding the
489489
directory open temporarily.
490490

491491
* Fix an issue where pip would hide the cursor on Windows but would not reshow
@@ -639,7 +639,7 @@
639639

640640
* Added a virtualenv-specific configuration file. (:pull:`1364`)
641641

642-
* Added site-wide configuation files. (:pull:`1978`)
642+
* Added site-wide configuration files. (:pull:`1978`)
643643

644644
* Added an automatic check to warn if there is an updated version of pip
645645
available (:pull:`2049`).
@@ -882,7 +882,7 @@
882882
* Fixed :issue:`1006`, error when installing local projects with symlinks in
883883
Python 3. (:pull:`1311`)
884884

885-
* The previously hidden ``--log-file`` otion, is now shown as a general option.
885+
* The previously hidden ``--log-file`` option, is now shown as a general option.
886886
(:pull:`1316`)
887887

888888

@@ -953,7 +953,7 @@
953953

954954

955955
* Fixed a major backward incompatible change of parsing URLs to externally
956-
hosted packages that got accidentily included in 1.3.
956+
hosted packages that got accidentally included in 1.3.
957957

958958

959959
**1.3 (2013-03-07)**
@@ -1145,7 +1145,7 @@
11451145

11461146
* Fixed :issue:`366` - pip throws IndexError when it calls `scraped_rel_links`
11471147

1148-
* Fixed :issue:`22` - pip search should set and return a userful shell status code
1148+
* Fixed :issue:`22` - pip search should set and return a useful shell status code
11491149

11501150
* Fixed :issue:`351` and :issue:`365` - added global ``--exists-action`` command line
11511151
option to easier script file exists conflicts, e.g. from editable
@@ -1331,7 +1331,7 @@
13311331
override this location with the ``$PIP_LOG_FILE`` environment variable.
13321332
For a complete (appended) logfile use the separate ``'--log'`` command line
13331333
option.
1334-
* Fixed an issue with Git that left an editable packge as a checkout of a
1334+
* Fixed an issue with Git that left an editable package as a checkout of a
13351335
remote branch, even if the default behaviour would have been fine, too.
13361336
* Fixed installing from a Git tag with older versions of Git.
13371337
* Expand "~" in logfile and download cache paths.

pip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636

3737
logger = logging.getLogger(__name__)
3838

39-
# Hide the InsecureRequestWArning from urllib3
39+
# Hide the InsecureRequestWarning from urllib3
4040
warnings.filterwarnings("ignore", category=InsecureRequestWarning)
4141

4242

pip/baseparser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def get_environ_vars(self):
273273
yield (_environ_prefix_re.sub("", key).lower(), val)
274274

275275
def get_default_values(self):
276-
"""Overridding to make updating the defaults after instantiation of
276+
"""Overriding to make updating the defaults after instantiation of
277277
the option parser possible, _update_defaults() does the dirty work."""
278278
if not self.process_default_values:
279279
# Old, pre-Optik 1.5 behaviour.

pip/commands/show.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def search_packages_info(query):
102102
'home-page', 'author', 'author-email', 'license'):
103103
package[key] = pkg_info_dict.get(key)
104104

105-
# It looks like FeedParser can not deal with repeated headers
105+
# It looks like FeedParser cannot deal with repeated headers
106106
classifiers = []
107107
for line in metadata.splitlines():
108108
if not line:

pip/compat/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def get_path_uid(path):
115115
file_uid = os.fstat(fd).st_uid
116116
os.close(fd)
117117
else: # AIX and Jython
118-
# WARNING: time of check vulnerabity, but best we can do w/o NOFOLLOW
118+
# WARNING: time of check vulnerability, but best we can do w/o NOFOLLOW
119119
if not os.path.islink(path):
120120
# older versions of Jython don't have `os.fstat`
121121
file_uid = os.stat(path).st_uid

pip/download.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ def parse_credentials(self, netloc):
200200
return None, None
201201

202202
def __nonzero__(self):
203-
# needed in order to evalue authentication object to False when we have
204-
# no credentials, prevents failure to load .netrc files
203+
# needed in order to evaluate authentication object to False when we
204+
# have no credentials, prevents failure to load .netrc files
205205
return bool(self.passwords)
206206

207207
def __bool__(self):
@@ -339,7 +339,7 @@ def __init__(self, *args, **kwargs):
339339
total=retries,
340340

341341
# A 503 error from PyPI typically means that the Fastly -> Origin
342-
# connection got interupted in some way. A 503 error in general
342+
# connection got interrupted in some way. A 503 error in general
343343
# is typically considered a transient error so we'll go ahead and
344344
# retry it.
345345
status_forcelist=[503],
@@ -687,7 +687,7 @@ def unpack_file_url(link, location, download_dir=None, hashes=None):
687687
return
688688

689689
# If --require-hashes is off, `hashes` is either empty, the
690-
# link's embeddded hash, or MissingHashes; it is required to
690+
# link's embedded hash, or MissingHashes; it is required to
691691
# match. If --require-hashes is on, we are satisfied by any
692692
# hash in `hashes` matching: a URL-based or an option-based
693693
# one; no internet-sourced hash will be in `hashes`.

pip/pep425tags.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def get_platform():
125125
if sys.platform == 'darwin':
126126
# distutils.util.get_platform() returns the release based on the value
127127
# of MACOSX_DEPLOYMENT_TARGET on which Python was built, which may
128-
# be signficantly older than the user's current machine.
128+
# be significantly older than the user's current machine.
129129
release, _, machine = platform.mac_ver()
130130
split_ver = release.split('.')
131131

pip/req/req_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def process_line(line, filename, line_number, finder=None, comes_from=None,
135135
defaults.format_control = finder.format_control
136136
args_str, options_str = break_args_options(line)
137137
if sys.version_info < (2, 7, 3):
138-
# Priori to 2.7.3, shlex can not deal with unicode entries
138+
# Prior to 2.7.3, shlex cannot deal with unicode entries
139139
options_str = options_str.encode('utf8')
140140
opts, _ = parser.parse_args(shlex.split(options_str), defaults)
141141

pip/utils/appdirs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def user_config_dir(appname, roaming=True):
115115
Win *: same as user_data_dir
116116
117117
For Unix, we follow the XDG spec and support $XDG_CONFIG_HOME.
118-
That means, by deafult "~/.config/<AppName>".
118+
That means, by default "~/.config/<AppName>".
119119
"""
120120
if WINDOWS:
121121
path = user_data_dir(appname, roaming=roaming)

pip/utils/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
A module that implments tooling to enable easy warnings about deprecations.
2+
A module that implements tooling to enable easy warnings about deprecations.
33
"""
44
from __future__ import absolute_import
55

pip/vcs/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(self, url=None, *args, **kwargs):
106106
def _is_local_repository(self, repo):
107107
"""
108108
posix absolute paths start with os.path.sep,
109-
win32 ones ones start with drive (like c:\\folder)
109+
win32 ones start with drive (like c:\\folder)
110110
"""
111111
drive, tail = os.path.splitdrive(repo)
112112
return repo.startswith(os.path.sep) or drive

pip/wheel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _get_script_text(entry):
440440
# Because setuptools and pip are bundled with _ensurepip and virtualenv,
441441
# we need to use universal wheels. So, as a stopgap until Metadata 2.0, we
442442
# override the versioned entry points in the wheel and generate the
443-
# correct ones. This code is purely a short-term measure until Metadat 2.0
443+
# correct ones. This code is purely a short-term measure until Metadata 2.0
444444
# is available.
445445
#
446446
# To add the level of hack in this section of code, in order to support

tests/functional/test_install.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def test_editable_install_from_local_directory_with_no_setup_py(script, data):
323323
@pytest.mark.xfail
324324
def test_install_argparse_shadowed(script, data):
325325
# When argparse is in the stdlib, we support installing it
326-
# even though thats pretty useless because older packages did need to
326+
# even though that's pretty useless because older packages did need to
327327
# depend on it, and not having its metadata will cause pkg_resources
328328
# requirements checks to fail // trigger easy-install, both of which are
329329
# bad.

tests/functional/test_install_reqs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def test_install_local_editable_with_extras(script, data):
169169

170170

171171
@pytest.mark.network
172-
def test_install_collected_dependancies_first(script):
172+
def test_install_collected_dependencies_first(script):
173173
result = script.pip(
174174
'install', 'paramiko',
175175
)

tests/functional/test_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def test_outdated_formats(script, data):
566566

567567
def test_list_freeze(script, data):
568568
"""
569-
Test freeze formating of list command
569+
Test freeze formatting of list command
570570
571571
"""
572572
script.pip(
@@ -580,7 +580,7 @@ def test_list_freeze(script, data):
580580

581581
def test_list_json(script, data):
582582
"""
583-
Test json formating of list command
583+
Test json formatting of list command
584584
585585
"""
586586
script.pip(

tests/unit/test_req.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ def test_get_dist_trailing_slash(self):
401401

402402
def test_markers(self):
403403
for line in (
404-
# recommanded syntax
404+
# recommended syntax
405405
'mock3; python_version >= "3"',
406406
# with more spaces
407407
'mock3 ; python_version >= "3" ',

tests/unit/test_req_uninstall.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ def test_add(self, tmpdir, monkeypatch):
1818
monkeypatch.setattr(pip.req.req_uninstall, 'is_local', mock_is_local)
1919
# Fix case for windows tests
2020
file_extant = os.path.normcase(os.path.join(tmpdir, 'foo'))
21-
file_nonexistant = os.path.normcase(
22-
os.path.join(tmpdir, 'nonexistant'))
21+
file_nonexistent = os.path.normcase(
22+
os.path.join(tmpdir, 'nonexistent'))
2323
with open(file_extant, 'w'):
2424
pass
2525

@@ -28,7 +28,7 @@ def test_add(self, tmpdir, monkeypatch):
2828
ups.add(file_extant)
2929
assert ups.paths == set([file_extant])
3030

31-
ups.add(file_nonexistant)
31+
ups.add(file_nonexistent)
3232
assert ups.paths == set([file_extant])
3333

3434
@pytest.mark.skipif("sys.platform == 'win32'")

tests/unit/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def mode(self, path):
300300
return stat.S_IMODE(os.stat(path).st_mode)
301301

302302
def confirm_files(self):
303-
# expections based on 022 umask set above and the unpack logic that
303+
# expectations based on 022 umask set above and the unpack logic that
304304
# sets execute permissions, not preservation
305305
for fname, expected_mode, test in [
306306
('file.txt', 0o644, os.path.isfile),

0 commit comments

Comments
 (0)