Fix typos (user-facing and non-user-facing) (#1357)

* Fix typos (user-facing and non-user-facing

Found via `codespell -q 3 -L datas,medias,warmup`

* Fix source typo found in tests/
This commit is contained in:
luzpaz authored and GitHub committed 2022-04-16 02:06:34 +03:00
1 parent 732878f1b4
commit d262181bed
10 files changed
+13 -13

No files matched your search

+2 -2
View File
@@ -83,7 +83,7 @@ class Encoder:
def __init__(self):
self.substitutions = {}
def subsitute(self, data: bytes) -> str:
def substitute(self, data: bytes) -> str:
idx = hash(data)
self.substitutions[idx] = data
return self.TEMPLATE.format(idx)
@@ -110,7 +110,7 @@ class FakeBytesIOBuffer(BytesIO):
try:
self.original_buffer.write(data.decode(UTF8))
except UnicodeDecodeError:
self.original_buffer.write(self.encoder.subsitute(data))
self.original_buffer.write(self.encoder.substitute(data))
finally:
self.original_buffer.flush()