Skip to content

Commit

Permalink
[DATALAD RUNCMD] run codespell throughout fixing few left typos autom…
Browse files Browse the repository at this point in the history
…agically

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "codespell -w",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
  • Loading branch information
yarikoptic committed Oct 29, 2024
1 parent 6c720f2 commit 65f7444
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion daiquiri/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def format(self, record: logging.LogRecord) -> str:
try:
record._stream_is_a_tty = self.stream.isatty()
except ValueError:
# Stream has been closed, usually during interpretor shutdown
# Stream has been closed, usually during interpreter shutdown
record._stream_is_a_tty = False
else:
record._stream_is_a_tty = False
Expand Down
8 changes: 4 additions & 4 deletions daiquiri/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _get_log_file_path(


class File(Output):
"""Ouput to a file."""
"""Output to a file."""

def __init__(
self,
Expand All @@ -93,7 +93,7 @@ def __init__(
:param directory: The log directory to write to. If no filename is
specified, the program name and suffix will be used
to contruct the full path relative to the directory.
to construct the full path relative to the directory.
:param suffix: The log file name suffix. This will be only used if no
filename has been provided.
Expand Down Expand Up @@ -129,7 +129,7 @@ def __init__(
:param directory: The log directory to write to. If no filename is
specified, the program name and suffix will be used
to contruct the full path relative to the directory.
to construct the full path relative to the directory.
:param suffix: The log file name suffix. This will be only used if no
filename has been provided.
Expand Down Expand Up @@ -179,7 +179,7 @@ def __init__(
:param directory: The log directory to write to. If no filename is
specified, the program name and suffix will be used
to contruct the full path relative to the directory.
to construct the full path relative to the directory.
:param suffix: The log file name suffix. This will be only used if no
filename has been provided.
Expand Down
2 changes: 1 addition & 1 deletion doc/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Picking format
--------------

You can configure the format of any output by passing a formatter as the
`formatter` argument to the contructor. Two default formatters are available:
`formatter` argument to the constructor. Two default formatters are available:
`daiquiri.formatter.TEXT_FORMATTER` which prints log messages as text, and the
`daiquiri.formatter.JSON_FORMATTER` which prints log messages as parsable JSON
(requires `python-json-logger`).
Expand Down

0 comments on commit 65f7444

Please sign in to comment.