diff --git a/daiquiri/handlers.py b/daiquiri/handlers.py index c6d026d..5fead24 100644 --- a/daiquiri/handlers.py +++ b/daiquiri/handlers.py @@ -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 diff --git a/daiquiri/output.py b/daiquiri/output.py index 73cbf97..4feee85 100644 --- a/daiquiri/output.py +++ b/daiquiri/output.py @@ -75,7 +75,7 @@ def _get_log_file_path( class File(Output): - """Ouput to a file.""" + """Output to a file.""" def __init__( self, @@ -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. @@ -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. @@ -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. diff --git a/doc/source/index.rst b/doc/source/index.rst index f45a9d2..46a0a3f 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -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`).