mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
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:
@@ -107,7 +107,7 @@ class ApacheHttp01(common.ChallengePerformer):
|
|||||||
if any(a.is_wildcard() or a.get_port() == http_port for a in vhost.addrs):
|
if any(a.is_wildcard() or a.get_port() == http_port for a in vhost.addrs):
|
||||||
found = True
|
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)
|
# because they might match at runtime (#8890)
|
||||||
if found:
|
if found:
|
||||||
selected_vhosts += self._unnamed_vhosts()
|
selected_vhosts += self._unnamed_vhosts()
|
||||||
|
|||||||
@@ -312,7 +312,7 @@ class DirectiveNode(ParserNode, metaclass=abc.ABCMeta):
|
|||||||
"""
|
"""
|
||||||
Sets the sequence of parameters for this ParserNode object without
|
Sets the sequence of parameters for this ParserNode object without
|
||||||
whitespaces. While the whitespaces for parameters are discarded when using
|
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.
|
kept intact.
|
||||||
|
|
||||||
:param list parameters: sequence of parameters
|
: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):
|
def add_child_block(self, name, parameters=None, position=None):
|
||||||
"""
|
"""
|
||||||
Adds a new BlockNode child node with provided values and marks the callee
|
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
|
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
|
newly created object. This is to match the current behavior of the legacy
|
||||||
parser implementation.
|
parser implementation.
|
||||||
@@ -385,7 +385,7 @@ class BlockNode(DirectiveNode, metaclass=abc.ABCMeta):
|
|||||||
"""
|
"""
|
||||||
Adds a new DirectiveNode child node with provided values and marks the
|
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
|
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
|
for the newly created object. This is to match the current behavior of the
|
||||||
legacy parser implementation.
|
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
|
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
|
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
|
for the newly created object. This is to match the current behavior of the
|
||||||
legacy parser implementation.
|
legacy parser implementation.
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class CentOSConfigurator(configurator.ApacheConfigurator):
|
|||||||
|
|
||||||
def _try_restart_fedora(self):
|
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:
|
try:
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ class FedoraConfigurator(configurator.ApacheConfigurator):
|
|||||||
|
|
||||||
def _try_restart_fedora(self):
|
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:
|
try:
|
||||||
util.run_script(['systemctl', 'restart', 'httpd'])
|
util.run_script(['systemctl', 'restart', 'httpd'])
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ class EntryPointTest(unittest.TestCase):
|
|||||||
with mock.patch("certbot.util.get_os_info") as mock_info:
|
with mock.patch("certbot.util.get_os_info") as mock_info:
|
||||||
mock_info.return_value = ("nonexistent", "irrelevant")
|
mock_info.return_value = ("nonexistent", "irrelevant")
|
||||||
with mock.patch("certbot.util.get_systemd_os_like") as mock_like:
|
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(),
|
self.assertEqual(entrypoint.get_configurator(),
|
||||||
configurator.ApacheConfigurator)
|
configurator.ApacheConfigurator)
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ RUN tools/venv.py
|
|||||||
ENV PATH /opt/certbot/src/venv/bin:$PATH
|
ENV PATH /opt/certbot/src/venv/bin:$PATH
|
||||||
|
|
||||||
# install in editable mode (-e) to save space: it's not possible to
|
# 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
|
# this might also help in debugging: you can "docker run --entrypoint
|
||||||
# bash" and investigate, apply patches, etc.
|
# bash" and investigate, apply patches, etc.
|
||||||
|
|
||||||
|
|||||||
@@ -330,7 +330,7 @@ def setup_logging(args):
|
|||||||
|
|
||||||
|
|
||||||
def setup_display():
|
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)
|
displayer = display_util.NoninteractiveDisplay(sys.stdout)
|
||||||
display_obj.set_display(displayer)
|
display_obj.set_display(displayer)
|
||||||
|
|
||||||
|
|||||||
@@ -260,7 +260,7 @@ class Sentence(Parsable):
|
|||||||
|
|
||||||
|
|
||||||
class Block(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:
|
The parsed block:
|
||||||
block name {
|
block name {
|
||||||
content 1;
|
content 1;
|
||||||
@@ -313,8 +313,8 @@ class Block(Parsable):
|
|||||||
"""
|
"""
|
||||||
if not Block.should_parse(raw_list):
|
if not Block.should_parse(raw_list):
|
||||||
raise errors.MisconfigurationError("Block parsing expects a list of length 2. "
|
raise errors.MisconfigurationError("Block parsing expects a list of length 2. "
|
||||||
"First element should be a list of string types (the bloc names), "
|
"First element should be a list of string types (the block names), "
|
||||||
"and second should be another list of statements (the bloc content).")
|
"and second should be another list of statements (the block content).")
|
||||||
self.names = Sentence(self)
|
self.names = Sentence(self)
|
||||||
if add_spaces:
|
if add_spaces:
|
||||||
raw_list[0].append(" ")
|
raw_list[0].append(" ")
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ class FileDisplay:
|
|||||||
# through the public API in certbot.display.util.
|
# through the public API in certbot.display.util.
|
||||||
@zope.interface.implementer(interfaces.IDisplay)
|
@zope.interface.implementer(interfaces.IDisplay)
|
||||||
class NoninteractiveDisplay:
|
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):
|
def __init__(self, outfile, *unused_args, **unused_kwargs):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|||||||
@@ -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_successes: list of fullchain paths which were renewed
|
||||||
:param list renew_failures: list of fullchain paths which failed to be 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 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 = display_util.notify
|
||||||
notify_error = logger.error
|
notify_error = logger.error
|
||||||
|
|||||||
@@ -474,7 +474,7 @@ class RenewDeployer(metaclass=ABCMeta):
|
|||||||
"""Perform updates defined by installer when a certificate has been renewed
|
"""Perform updates defined by installer when a certificate has been renewed
|
||||||
|
|
||||||
If an installer is a subclass of the class containing this method, this
|
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
|
running "certbot renew". For example if a plugin needs to copy a
|
||||||
certificate over, or change configuration based on the new certificate.
|
certificate over, or change configuration based on the new certificate.
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
installer plugins that cover both of those hard topics.
|
||||||
|
|
||||||
If you're still not convinced and have decided to use this method, from
|
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
|
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
|
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
|
to make the port it uses accessible from outside of the container by
|
||||||
|
|||||||
@@ -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
|
whether your system has a pre-installed scheduled task for Certbot, it is safe to follow these
|
||||||
instructions to create one.
|
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.
|
a scheduled task for automated renewal pre-installed.
|
||||||
|
|
||||||
Run the following line, which will add a cron job to `/etc/crontab`:
|
Run the following line, which will add a cron job to `/etc/crontab`:
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ class ErrorHandlerTest(unittest.TestCase):
|
|||||||
send_signal(self.signals[0])
|
send_signal(self.signals[0])
|
||||||
should_be_42 *= 10
|
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)
|
self.assertEqual(42, should_be_42)
|
||||||
# assert signals were caught
|
# assert signals were caught
|
||||||
self.assertEqual([self.signals[0]], signals_received)
|
self.assertEqual([self.signals[0]], signals_received)
|
||||||
|
|||||||
Reference in New Issue
Block a user