[damned-lies] read_linguas_file result is already a dict structure



commit 13fc52b2eeac89e55a4ffbef6d7f68dc9172adb2
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Mar 5 16:05:28 2018 +0100

    read_linguas_file result is already a dict structure

 stats/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index aad01d3..f05fa7c 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -584,7 +584,7 @@ def get_doc_linguas(module_path, po_path):
         # Try to get LINGUAS file like for UI.
         LINGUAS_path = os.path.join(po_path, "LINGUAS")
         if os.access(LINGUAS_path, os.R_OK):
-            linguas = read_linguas_file(LINGUAS_path)
+            return read_linguas_file(LINGUAS_path)
     if linguas is None:
         return {'langs':None,
                 'error': ugettext_noop("Don’t know where to look for the DOC_LINGUAS variable, ask the 
module maintainer.") }


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