From af74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 28 Jul 2011 10:25:49 -0400 Subject: Fixed a Python 2.4 incompatability in last commit. 'encode' only accepted positional arguments back then. --- tests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/__init__.py') diff --git a/tests/__init__.py b/tests/__init__.py index b274b1e..3cc90b7 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -51,7 +51,7 @@ def get_args(file, config): def normalize(text): """ Normalize whitespace for a string of html using tidy. """ - return str(tidy.parseString(text.encode('utf-8', errors='xmlcharrefreplace'), + return str(tidy.parseString(text.encode('utf-8', 'xmlcharrefreplace'), drop_empty_paras=0, fix_backslash=0, fix_bad_comments=0, -- cgit v1.2.3