8000 Misc. source comment typos (#391) · sna19/html5lib-python@e9ef538 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e9ef538

Browse files
luzpazgsnedders
authored andcommitted
Misc. source comment typos (html5lib#391)
Found via `codespell -q 3`
1 parent 5e6b61b commit e9ef538

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

html5lib/_inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def determineEncoding(self, chardet=True):
461461
if charEncoding[0] is not None:
462462
return charEncoding
463463

464-
# If we've been overriden, we've been overriden
464+
# If we've been overridden, we've been overridden
465465
charEncoding = lookupEncoding(self.override_encoding), "certain"
466466
if charEncoding[0] is not None:
467467
return charEncoding

html5lib/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def serialize(self, treewalker, encoding=None):
274274
if token["systemId"]:
275275
if token["systemId"].find('"') >= 0:
276276
if token["systemId"].find("'") >= 0:
277-
self.serializeError("System identifer contains both single and double quote characters")
277+
self.serializeError("System identifier contains both single and double quote characters")
278278
quote_char = "'"
279279
else:
280280
quote_char = '"'

html5lib/tests/serializer-testdata/core.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@
375375
"-//W3C//DTD HTML 4.01//EN"
376376
]
377377
],
378-
"description": "HTML 4.01 DOCTYPE without system identifer"
378+
"description": "HTML 4.01 DOCTYPE without system identifier"
379379
},
380380
{
381381
"expected": [
@@ -389,7 +389,7 @@
389389
"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"
390390
]
391391
],
392-
"description": "IBM DOCTYPE without public identifer"
392+
"description": "IBM DOCTYPE without public identifier"
393393
}
394394
]
395395
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def default_environment():
4646

4747
_markerlib.default_environment = default_environment
4848

49-
# Avoid the very buggy pkg_resources.parser, which doesnt consistently
49+
# Avoid the very buggy pkg_resources.parser, which doesn't consistently
5050
# recognise the markers needed by this setup.py
5151
# Change this to setuptools 20.10.0 to support all markers.
5252
if pkg_resources:

0 commit comments

Comments
 (0)
0