[damned-lies] Using pocount.calcstats_old to calculate word statistics



commit 827c8fcfb1e30c0729c19e447e5a92021f202493
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Aug 31 11:07:36 2011 +0200

    Using pocount.calcstats_old to calculate word statistics
    
    The problem with pocount.calcstats is that it creates a Sqlite database
    to store results. On one side it seems to create file system errors, and
    on the another side we don't want any cache database as it is of no use
    for use. calcstats_old is exactly the method we need!

 stats/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index dacfdff..2c70dd6 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -335,7 +335,7 @@ def po_file_stats(pofile, msgfmt_checks=True):
         input_file = pofile
 
         if has_toolkit:
-            status = pocount.calcstats(pofile)
+            status = pocount.calcstats_old(pofile)
             res['fuzzy_words'] = status['fuzzysourcewords']
             res['translated_words'] = status['translatedsourcewords']
             res['untranslated_words'] = status['untranslatedsourcewords']



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]