Commit 8c181be1 authored by Michal Čihař's avatar Michal Čihař

This can be class method

parent b7342be6
......@@ -442,11 +442,12 @@ class FileFormat(object):
else:
return self.store.Extensions[0]
def supports_language_pack(self):
@classmethod
def supports_language_pack(cls):
'''
Checks whether backend store supports generating language pack.
'''
return hasattr(self, 'get_language_pack')
return hasattr(cls, 'get_language_pack')
class AutoFormat(FileFormat):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment