Skip to content

Commit

Permalink
chore: Fix typos (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
kianmeng committed May 23, 2022
1 parent 388658e commit a67829e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ or by adding the following lines to ``~/.pip/pip.conf``::

.. Note::
If you have installed ``pypiserver`` on a remote url without *https*
you wil receive an "untrusted" warning from *pip*, urging you to append
you will receive an "untrusted" warning from *pip*, urging you to append
the ``--trusted-host`` option. You can also include this option permanently
in your configuration-files or environment variables.

Expand Down Expand Up @@ -282,7 +282,7 @@ In that case, ``pypiserver`` is responsible for authenticating the upload-reques
http://serverfault.com/questions/152950/how-to-create-and-edit-htaccess-and-htpasswd-locally-on-my-computer-and-then-u

or if you have bogus passwords that you don't care because they are for
an internal service (which is still "bad", from a security prespective...)
an internal service (which is still "bad", from a security perspective...)
you may use this public service:

http://www.htaccesstools.com/htpasswd-generator/
Expand Down Expand Up @@ -399,7 +399,7 @@ previous versions of ``pypiserver`` already exist, and (optionally) uninstall th
# VERSION-CHECK: Fails if not installed.
pypi-server --version

# UNINSTALL: Invoke again untill it fails.
# UNINSTALL: Invoke again until it fails.
pip uninstall pypiserver

Installing the Very Latest Version
Expand Down
4 changes: 2 additions & 2 deletions pypiserver/bottle.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,7 +1752,7 @@ def wrapper(*a, **ka):
if isinstance(rv, dict):
#Attempt to serialize, raises exception on failure
json_response = dumps(rv)
#Set content type only if serialization succesful
#Set content type only if serialization successful
response.content_type = 'application/json'
return json_response
elif isinstance(rv, HTTPResponse) and isinstance(rv.body, dict):
Expand Down Expand Up @@ -2327,7 +2327,7 @@ def lookup(self, name):
''' Search for a resource and return an absolute file path, or `None`.
The :attr:`path` list is searched in order. The first match is
returend. Symlinks are followed. The result is cached to speed up
returned. Symlinks are followed. The result is cached to speed up
future lookups. '''
if name not in self.cache or DEBUG:
for path in self.path:
Expand Down
2 changes: 1 addition & 1 deletion pypiserver/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def from_args(cls, args: t.Sequence[str] = None) -> Configuration:
def _adjust_old_args(args: t.Sequence[str]) -> t.List[str]:
"""Adjust args for backwards compatibility.
Should only be called once args have been verified to be unparseable.
Should only be called once args have been verified to be unparsable.
"""
# Backwards compatibility hack: for most of pypiserver's life, "run"
# and "update" were not separate subcommands. The `-U` flag being
Expand Down
2 changes: 1 addition & 1 deletion tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ def test_search(root, testapp, search_xml, pkgs, matches):
expected name and version matches for a search for the "test"
package as specified by the search_xml fixture.
:param root: root temporry directory fixture; used as packages dir
:param root: root temporary directory fixture; used as packages dir
for testapp
:param testapp: webtest TestApp
:param str search_xml: XML string roughly equivalent to a pip search
Expand Down
4 changes: 2 additions & 2 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ def generate_subcommand_test_cases(
# ******************************************************************
# Update subcommand args
# ******************************************************************
# exeucte
# execute
ConfigTestCase(
case="Update: execute not specified",
args=["update"],
Expand Down Expand Up @@ -735,7 +735,7 @@ def test_config_error(
"""Validate error cases."""
with pytest.raises(SystemExit):
Config.from_args(args)
# Unfortunatley the error text is printed before the SystemExit is
# Unfortunately the error text is printed before the SystemExit is
# raised, rather than being raised _with_ the systemexit, so we
# need to capture stderr and check it for our expected text, if
# any was specified in the test case.
Expand Down
2 changes: 1 addition & 1 deletion tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def test_auto_servers() -> None:
# adapters are defined in the AutoServer
our_check_order = tuple(i[0] for i in __main__.AUTO_SERVER_IMPORTS)

# Some of the servers have more than one check, so we need to rmeove
# Some of the servers have more than one check, so we need to remove
# duplicates before we check for identity with the AutoServer definition.
seen: t.Dict[__main__.AutoServer, __main__.AutoServer] = {}
our_check_order = tuple(
Expand Down

0 comments on commit a67829e

Please sign in to comment.