Skip to content

Commit

Permalink
Make method static, it does not use self
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Oct 15, 2018
1 parent e2e01aa commit b2e8d39
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tidy/lib.py
Expand Up @@ -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)
Expand Down

0 comments on commit b2e8d39

Please sign in to comment.