From d35e92875c62cf43227ccc6fca75b5e74a6350e8 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Fri, 18 Feb 2011 12:23:37 -0500 Subject: Made Unicode, Dammit more PEP-8 compliant. --- beautifulsoup/builder/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'beautifulsoup/builder/__init__.py') diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py index a5e1b06..5c275d7 100644 --- a/beautifulsoup/builder/__init__.py +++ b/beautifulsoup/builder/__init__.py @@ -121,7 +121,7 @@ class HTMLTreeBuilder(TreeBuilder): match = self.CHARSET_RE.search(content) if match: if (self.soup.declared_html_encoding is not None or - self.soup.originalEncoding == self.soup.fromEncoding): + self.soup.original_encoding == self.soup.fromEncoding): # An HTML encoding was sniffed while converting # the document to Unicode, or an HTML encoding was # sniffed during a previous pass through the @@ -136,7 +136,7 @@ class HTMLTreeBuilder(TreeBuilder): # Go through it again with the encoding information. new_charset = match.group(3) if (new_charset is not None - and new_charset != self.soup.originalEncoding): + and new_charset != self.soup.original_encoding): self.soup.declared_html_encoding = new_charset self.soup._feed(self.soup.declared_html_encoding) raise StopParsing -- cgit v1.2.3