[Treepkg-commits] r7 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Aug 31 19:07:18 CEST 2007


Author: bh
Date: 2007-08-31 19:07:18 +0200 (Fri, 31 Aug 2007)
New Revision: 7

Modified:
   trunk/treepkg/util.py
Log:
Document what extract_value_for_key returns when the key is not found


Modified: trunk/treepkg/util.py
===================================================================
--- trunk/treepkg/util.py	2007-08-31 17:04:27 UTC (rev 6)
+++ trunk/treepkg/util.py	2007-08-31 17:07:18 UTC (rev 7)
@@ -26,6 +26,8 @@
     The function determines the first string in lines that starts with
     key.  It returns the rest of the lines stripped of leading and
     trailing whitespace.
+
+    If the key is not found in lines, the function returns None.
     """
     for line in lines:
         if line.startswith(key):



More information about the Treepkg-commits mailing list