# HG changeset patch # User Daniel Hans # Date 1257201523 -3600 # Node ID ebda36efbd61fb2497773af323271a5bf9390496 # Parent 6e100e1946806e53551e43f6c1028a4656306d72 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). diff -r 6e100e194680 -r ebda36efbd61 app/htmlsanitizer/HtmlSanitizer.py --- 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):