[damned-lies] Made the .in suffix optional when trying to get reduced po statistics



commit a18e460edd739193e0c4393741b5675bfeb7aa32
Author: Claude Paroz <claude 2xlibre net>
Date:   Mon Mar 26 13:48:00 2018 +0200

    Made the .in suffix optional when trying to get reduced po statistics

 stats/utils.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index 7cef43f..a931908 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -355,7 +355,7 @@ def po_grep(in_file, out_file, filter_):
     if not has_toolkit or filter_ == "-":
         return
     if not filter_:
-        filter_loc, filter_str = "locations", "gschema.xml.in|schemas.in"
+        filter_loc, filter_str = "locations", "gschema.xml(.in)?|schemas.in"
     else:
         try:
             filter_loc, filter_str = filter_.split("|")


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