Fix some typos (found by codespell) (#9017)

* Fix some typos (found by codespell)

Signed-off-by: Stefan Weil <sw@weilnetz.de>

* Remove typo fixes for some files which should not be modified

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2021-09-02 22:43:13 +02:00 committed by GitHub
parent 1a2d74decc
commit 0d4f92fa81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 19 additions and 19 deletions

View file

@ -107,7 +107,7 @@ class ApacheHttp01(common.ChallengePerformer):
if any(a.is_wildcard() or a.get_port() == http_port for a in vhost.addrs):
found = True
# If there's at least one elgible VirtualHost, also add all unnamed VirtualHosts
# If there's at least one eligible VirtualHost, also add all unnamed VirtualHosts
# because they might match at runtime (#8890)
if found:
selected_vhosts += self._unnamed_vhosts()

View file

@ -312,7 +312,7 @@ class DirectiveNode(ParserNode, metaclass=abc.ABCMeta):
"""
Sets the sequence of parameters for this ParserNode object without
whitespaces. While the whitespaces for parameters are discarded when using
this method, the whitespacing preceeding the ParserNode itself should be
this method, the whitespacing preceding the ParserNode itself should be
kept intact.
:param list parameters: sequence of parameters
@ -364,7 +364,7 @@ class BlockNode(DirectiveNode, metaclass=abc.ABCMeta):
def add_child_block(self, name, parameters=None, position=None):
"""
Adds a new BlockNode child node with provided values and marks the callee
BlockNode dirty. This is used to add new children to the AST. The preceeding
BlockNode dirty. This is used to add new children to the AST. The preceding
whitespaces should not be added based on the ancestor or siblings for the
newly created object. This is to match the current behavior of the legacy
parser implementation.
@ -385,7 +385,7 @@ class BlockNode(DirectiveNode, metaclass=abc.ABCMeta):
"""
Adds a new DirectiveNode child node with provided values and marks the
callee BlockNode dirty. This is used to add new children to the AST. The
preceeding whitespaces should not be added based on the ancestor or siblings
preceding whitespaces should not be added based on the ancestor or siblings
for the newly created object. This is to match the current behavior of the
legacy parser implementation.
@ -406,7 +406,7 @@ class BlockNode(DirectiveNode, metaclass=abc.ABCMeta):
"""
Adds a new CommentNode child node with provided value and marks the
callee BlockNode dirty. This is used to add new children to the AST. The
preceeding whitespaces should not be added based on the ancestor or siblings
preceding whitespaces should not be added based on the ancestor or siblings
for the newly created object. This is to match the current behavior of the
legacy parser implementation.

View file

@ -51,7 +51,7 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
def _try_restart_fedora(self):
"""
Tries to restart httpd using systemctl to generate the self signed keypair.
Tries to restart httpd using systemctl to generate the self signed key pair.
"""
try:

View file

@ -43,7 +43,7 @@ class FedoraConfigurator(configurator.ApacheConfigurator):
def _try_restart_fedora(self):
"""
Tries to restart httpd using systemctl to generate the self signed keypair.
Tries to restart httpd using systemctl to generate the self signed key pair.
"""
try:
util.run_script(['systemctl', 'restart', 'httpd'])

View file

@ -41,7 +41,7 @@ class EntryPointTest(unittest.TestCase):
with mock.patch("certbot.util.get_os_info") as mock_info:
mock_info.return_value = ("nonexistent", "irrelevant")
with mock.patch("certbot.util.get_systemd_os_like") as mock_like:
mock_like.return_value = ["unknonwn"]
mock_like.return_value = ["unknown"]
self.assertEqual(entrypoint.get_configurator(),
configurator.ApacheConfigurator)

View file

@ -15,7 +15,7 @@ RUN tools/venv.py
ENV PATH /opt/certbot/src/venv/bin:$PATH
# install in editable mode (-e) to save space: it's not possible to
# "rm -rf /opt/certbot/src" (it's stays in the underlaying image);
# "rm -rf /opt/certbot/src" (it's stays in the underlying image);
# this might also help in debugging: you can "docker run --entrypoint
# bash" and investigate, apply patches, etc.

View file

@ -330,7 +330,7 @@ def setup_logging(args):
def setup_display():
""""Prepares a display utility instace for the Certbot plugins """
""""Prepares a display utility instance for the Certbot plugins """
displayer = display_util.NoninteractiveDisplay(sys.stdout)
display_obj.set_display(displayer)

View file

@ -260,7 +260,7 @@ class Sentence(Parsable):
class Block(Parsable):
""" Any sort of bloc, denoted by a block name and curly braces, like so:
""" Any sort of block, denoted by a block name and curly braces, like so:
The parsed block:
block name {
content 1;
@ -313,8 +313,8 @@ class Block(Parsable):
"""
if not Block.should_parse(raw_list):
raise errors.MisconfigurationError("Block parsing expects a list of length 2. "
"First element should be a list of string types (the bloc names), "
"and second should be another list of statements (the bloc content).")
"First element should be a list of string types (the block names), "
"and second should be another list of statements (the block content).")
self.names = Sentence(self)
if add_spaces:
raw_list[0].append(" ")

View file

@ -396,7 +396,7 @@ class FileDisplay:
# through the public API in certbot.display.util.
@zope.interface.implementer(interfaces.IDisplay)
class NoninteractiveDisplay:
"""An diplay utility implementation that never asks for interactive user input"""
"""A display utility implementation that never asks for interactive user input"""
def __init__(self, outfile, *unused_args, **unused_kwargs):
super().__init__()

View file

@ -360,7 +360,7 @@ def _renew_describe_results(config: configuration.NamespaceConfig, renew_success
:param list renew_successes: list of fullchain paths which were renewed
:param list renew_failures: list of fullchain paths which failed to be renewed
:param list renew_skipped: list of messages to print about skipped certificates
:param list parse_failures: list of renewal parameter paths which had erorrs
:param list parse_failures: list of renewal parameter paths which had errors
"""
notify = display_util.notify
notify_error = logger.error

View file

@ -474,7 +474,7 @@ class RenewDeployer(metaclass=ABCMeta):
"""Perform updates defined by installer when a certificate has been renewed
If an installer is a subclass of the class containing this method, this
function will always be called when a certficate has been renewed by
function will always be called when a certificate has been renewed by
running "certbot renew". For example if a plugin needs to copy a
certificate over, or change configuration based on the new certificate.

View file

@ -90,7 +90,7 @@ recommended for your system at certbot.eff.org_, which enables you to use
installer plugins that cover both of those hard topics.
If you're still not convinced and have decided to use this method, from
the server that the domain you're requesting a certficate for resolves
the server that the domain you're requesting a certificate for resolves
to, `install Docker`_, then issue a command like the one found below. If
you are using Certbot with the :ref:`Standalone` plugin, you will need
to make the port it uses accessible from outside of the container by

View file

@ -818,7 +818,7 @@ scheduled task to automatically renew your certificates in the background. If yo
whether your system has a pre-installed scheduled task for Certbot, it is safe to follow these
instructions to create one.
If you're using Windows, these instructions are not neccessary as Certbot on Windows comes with
If you're using Windows, these instructions are not necessary as Certbot on Windows comes with
a scheduled task for automated renewal pre-installed.
Run the following line, which will add a cron job to `/etc/crontab`:

View file

@ -80,7 +80,7 @@ class ErrorHandlerTest(unittest.TestCase):
send_signal(self.signals[0])
should_be_42 *= 10
# check execution stoped when the signal was sent
# check execution stopped when the signal was sent
self.assertEqual(42, should_be_42)
# assert signals were caught
self.assertEqual([self.signals[0]], signals_received)