changeset 83:83e48a76f759

Document what extract_value_for_key returns when the key is not found
author Bernhard Herzog <bh@intevation.de>
date Fri, 31 Aug 2007 17:07:18 +0000
parents 3b9f35a50abf
children 98a7d70746a9
files treepkg/util.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/treepkg/util.py	Fri Aug 31 17:04:27 2007 +0000
+++ b/treepkg/util.py	Fri Aug 31 17:07:18 2007 +0000
@@ -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):
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)