summaryrefslogtreecommitdiff
path: root/beautifulsoup/builder/html5lib_builder.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 12:23:37 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-18 12:23:37 -0500
commitd35e92875c62cf43227ccc6fca75b5e74a6350e8 (patch)
tree03267eb13dcaf17614a4475cf40e8b7e7552d698 /beautifulsoup/builder/html5lib_builder.py
parent845dbe03bee981bcc5d24ef06ca868042968aa4c (diff)
Made Unicode, Dammit more PEP-8 compliant.
Diffstat (limited to 'beautifulsoup/builder/html5lib_builder.py')
-rw-r--r--beautifulsoup/builder/html5lib_builder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/beautifulsoup/builder/html5lib_builder.py b/beautifulsoup/builder/html5lib_builder.py
index 95151da..0a24ce1 100644
--- a/beautifulsoup/builder/html5lib_builder.py
+++ b/beautifulsoup/builder/html5lib_builder.py
@@ -27,9 +27,9 @@ class HTML5TreeBuilder(HTMLTreeBuilder):
if isinstance(markup, unicode):
# We need to special-case this because html5lib sets
# charEncoding to UTF-8 if it gets Unicode input.
- doc.originalEncoding = None
+ doc.original_encoding = None
else:
- doc.originalEncoding = parser.tokenizer.stream.charEncoding[0]
+ doc.original_encoding = parser.tokenizer.stream.charEncoding[0]
def create_treebuilder(self, namespaceHTMLElements):
self.underlying_builder = TreeBuilderForHtml5lib(