# HG changeset patch # User Bernhard Herzog # Date 1188580038 0 # Node ID 83e48a76f759034eda99bb253ebe4e0a3284bee7 # Parent 3b9f35a50abf52c74b8ad2286e43fd77d572ffd9 Document what extract_value_for_key returns when the key is not found diff -r 3b9f35a50abf -r 83e48a76f759 treepkg/util.py --- 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):