From 487b2b22b4a68bc3942ab17d8469eeefa30de592 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Fri, 2 Mar 2018 21:28:43 -0500 Subject: [PATCH] Misc. source comment typos Found via `codespell -q 3` --- html5lib/_inputstream.py | 2 +- html5lib/serializer.py | 2 +- html5lib/tests/serializer-testdata/core.test | 4 ++-- setup.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html5lib/_inputstream.py b/html5lib/_inputstream.py index aabc7b88..c20e94fd 100644 --- a/html5lib/_inputstream.py +++ b/html5lib/_inputstream.py @@ -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 diff --git a/html5lib/serializer.py b/html5lib/serializer.py index d6b7105d..c66df683 100644 --- a/html5lib/serializer.py +++ b/html5lib/serializer.py @@ -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 = '"' diff --git a/html5lib/tests/serializer-testdata/core.test b/html5lib/tests/serializer-testdata/core.test index 70828d0d..55294b68 100644 --- a/html5lib/tests/serializer-testdata/core.test +++ b/html5lib/tests/serializer-testdata/core.test @@ -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": [ @@ -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" } ] } diff --git a/setup.py b/setup.py index 3e413f2a..cb96f2f2 100644 --- a/setup.py +++ b/setup.py @@ -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: