Skip to content

Commit

Permalink
Merge pull request #365 from kurtmckee/fix-some-typos
Browse files Browse the repository at this point in the history
Fix some minor typos
  • Loading branch information
kurtmckee committed May 11, 2023
2 parents 859ac57 + 6177524 commit cc4e566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion feedparser/encodings.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def convert_to_utf8(


# How much to read from a binary file in order to detect encoding.
# In inital tests, 4k was enough for ~160 mostly-English feeds;
# In initial tests, 4k was enough for ~160 mostly-English feeds;
# 64k seems like a safe margin.
CONVERT_FILE_PREFIX_LEN = 2**16

Expand Down
2 changes: 1 addition & 1 deletion feedparser/mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def unknown_starttag(self, tag, attrs):
if isinstance(baseuri, bytes):
baseuri = baseuri.decode(self.encoding, "ignore")
# ensure that self.baseuri is always an absolute URI that
# uses a whitelisted URI scheme (e.g. not `javscript:`)
# uses a whitelisted URI scheme (e.g. not `javascript:`)
if self.baseuri:
self.baseuri = make_safe_absolute_uri(self.baseuri, baseuri) or self.baseuri
else:
Expand Down

0 comments on commit cc4e566

Please sign in to comment.