aboutsummaryrefslogtreecommitdiffstats
path: root/tests/__init__.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2011-07-28 10:25:49 -0400
committerWaylan Limberg <waylan@gmail.com>2011-07-28 10:25:49 -0400
commitaf74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a (patch)
tree37b8e01ab317b8814bfb281e7d8e4a97b0e5337b /tests/__init__.py
parent80f6ac599f79546512b522566cb421acea1aca19 (diff)
downloadmarkdown-af74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a.tar.gz
markdown-af74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a.tar.bz2
markdown-af74ff4dd4ca93f63cdf0a9d7dc8b1258f13fe1a.zip
Fixed a Python 2.4 incompatability in last commit. 'encode' only accepted positional arguments back then.
Diffstat (limited to 'tests/__init__.py')
-rw-r--r--tests/__init__.py2
1 files changed, 1 insertions, 1 deletions
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,