summaryrefslogtreecommitdiffstats
path: root/Tools/c-analyzer/c_common
diff options
context:
space:
mode:
authorChristian Clauss <cclauss@me.com>2021-10-06 17:55:16 (GMT)
committerGitHub <noreply@github.com>2021-10-06 17:55:16 (GMT)
commit682aecfdeba481c876bfc9f3796c635bd5b5df50 (patch)
tree51102e7170b805a9ae1916483ba04b2e0e7f4fe9 /Tools/c-analyzer/c_common
parent0571b934f5f9198c3461a7b631d7073ac0a5676f (diff)
downloadcpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.zip
cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.gz
cpython-682aecfdeba481c876bfc9f3796c635bd5b5df50.tar.bz2
Fix typos in the Tools directory (GH-28769)
Like #28744 but for the Tools directory. [skip issue] Opening a related issue is pending python/psf-infra-meta#130 Automerge-Triggered-By: GH:pablogsal
Diffstat (limited to 'Tools/c-analyzer/c_common')
-rw-r--r--Tools/c-analyzer/c_common/logging.py2
-rw-r--r--Tools/c-analyzer/c_common/strutil.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tools/c-analyzer/c_common/logging.py b/Tools/c-analyzer/c_common/logging.py
index 12398f7..10af852 100644
--- a/Tools/c-analyzer/c_common/logging.py
+++ b/Tools/c-analyzer/c_common/logging.py
@@ -41,7 +41,7 @@ def configure_logger(logger, verbosity=VERBOSITY, *,
def hide_emit_errors():
"""Ignore errors while emitting log entries.
- Rather than printing a message desribing the error, we show nothing.
+ Rather than printing a message describing the error, we show nothing.
"""
# For now we simply ignore all exceptions. If we wanted to ignore
# specific ones (e.g. BrokenPipeError) then we would need to use
diff --git a/Tools/c-analyzer/c_common/strutil.py b/Tools/c-analyzer/c_common/strutil.py
index e7535d4..07193c0 100644
--- a/Tools/c-analyzer/c_common/strutil.py
+++ b/Tools/c-analyzer/c_common/strutil.py
@@ -26,7 +26,7 @@ def parse_entries(entries, *, ignoresep=None):
# We read the entire file here to ensure the file
# gets closed sooner rather than later. Note that
# the file would stay open if this iterator is never
- # exchausted.
+ # exhausted.
lines = infile.read().splitlines()
for line in _iter_significant_lines(lines):
yield line, filename