[damned-lies] Provide for the case where includes is None
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Subject: [damned-lies] Provide for the case where includes is None
- Date: Sat, 4 Jul 2009 09:07:05 +0000 (UTC)
commit d7b02d23e79cc85b3ef657ef8a88f175aa593db1
Author: Claude Paroz <claude 2xlibre net>
Date: Sat Jul 4 11:06:56 2009 +0200
Provide for the case where includes is None
stats/utils.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/stats/utils.py b/stats/utils.py
index 377208b..494dcd3 100644
--- a/stats/utils.py
+++ b/stats/utils.py
@@ -120,9 +120,10 @@ def generate_doc_pot_file(vcs_path, potbase, moduleid, verbose):
files = os.path.join("C", modulename + ".xml")
includes = read_makefile_variable([vcs_path], "DOC_INCLUDES")
- for f in includes.split(" "):
- if f.strip() != "":
- files += " %s" % (os.path.join("C", f.strip()))
+ if includes:
+ for f in includes.split(" "):
+ if f.strip() != "":
+ files += " %s" % (os.path.join("C", f.strip()))
potfile = os.path.join(vcs_path, "C", potbase + ".pot")
command = "cd \"%s\" && xml2po -o %s -e %s" % (vcs_path, potfile, files)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]