Skip to content

Misc. source comment typos #391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion html5lib/_inputstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def determineEncoding(self, chardet=True):
if charEncoding[0] is not None:
return charEncoding

# If we've been overriden, we've been overriden
# If we've been overridden, we've been overridden
charEncoding = lookupEncoding(self.override_encoding), "certain"
if charEncoding[0] is not None:
return charEncoding
Expand Down
2 changes: 1 addition & 1 deletion html5lib/serializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ def serialize(self, treewalker, encoding=None):
if token["systemId"]:
if token["systemId"].find('"') >= 0:
if token["systemId"].find("'") >= 0:
self.serializeError("System identifer contains both single and double quote characters")
self.serializeError("System identifier contains both single and double quote characters")
quote_char = "'"
else:
quote_char = '"'
Expand Down
4 changes: 2 additions & 2 deletions html5lib/tests/serializer-testdata/core.test
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
"-//W3C//DTD HTML 4.01//EN"
]
],
"description": "HTML 4.01 DOCTYPE without system identifer"
"description": "HTML 4.01 DOCTYPE without system identifier"
},
{
"expected": [
Expand All @@ -389,7 +389,7 @@
"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"
]
],
"description": "IBM DOCTYPE without public identifer"
"description": "IBM DOCTYPE without public identifier"
}
]
}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def default_environment():

_markerlib.default_environment = default_environment

# Avoid the very buggy pkg_resources.parser, which doesnt consistently
# Avoid the very buggy pkg_resources.parser, which doesn't consistently
# recognise the markers needed by this setup.py
# Change this to setuptools 20.10.0 to support all markers.
if pkg_resources:
Expand Down