HtmlSanitizer becomes Python 2.6 compatible.
The Cleaner class must not have any arguments when calling __init__ function for the object class, because in this case Python 2.6 raises TypeError (while previous versions just ignored them).
--- a/app/htmlsanitizer/HtmlSanitizer.py Mon Nov 02 16:23:58 2009 +0100
+++ b/app/htmlsanitizer/HtmlSanitizer.py Mon Nov 02 23:38:43 2009 +0100
@@ -124,7 +124,7 @@
self.settings.update(kwargs)
if args :
self.settings['filters'] = args
- super(Cleaner, self).__init__(string_or_soup, *args, **kwargs)
+ super(Cleaner, self).__init__()
self.string = string_or_soup
def __call__(self, string = None, **kwargs):