diff --git a/tidy/lib.py b/tidy/lib.py index de9dbe9..79db9f6 100644 --- a/tidy/lib.py +++ b/tidy/lib.py @@ -257,7 +257,8 @@ def __str__(self): class DocumentFactory(FactoryDict): - def load(self, doc, arg, loader): + @staticmethod + def load(doc, arg, loader): status = loader(doc.cdoc, arg) if status > 0: _tidy.CleanAndRepair(doc.cdoc)