Commits

Diego Búrigo Zacarão  committed 7f8bd5e

Made some POTManager methods static ones

  • Participants
  • Parent commits ec287d1

Comments (0)

Files changed (1)

File transifex/translations/lib/types/pot.py

         else:
             return None
 
-    @classmethod
-    def get_po_stats(self, po_contents):
+    @staticmethod
+    def get_po_stats(po_contents):
         """
         Return a dictionary with the stats for a POT/PO file content.
 
                 'untranslated' : int(untranslated),
                 'error' : error,}
 
-    @classmethod
-    def get_stats_completion(self, stats):
+    @staticmethod
+    def get_stats_completion(stats):
         """
         Get a dictionary with the translation stats of a pofile and returns the 
         completion of it.
             pass
         return None
 
-    @classmethod
-    def get_stats_status(self, stats):
+    @staticmethod
+    def get_stats_status(stats):
         """
         Get a dictionary with the translation stats of a pofile and returns a 
         string with the status in the following format:
                 'error': postats['error'],
                 'is_msgmerged': is_msgmerged}
 
-    def msgfmt_check(self, po_contents):
+    @staticmethod
+    def msgfmt_check(po_contents):
         """
         Run a `msgfmt -c` on a file (file object).
         Raises a MsgfmtCheckError in case the file has errors or warnings.