Mercurial > treepkg
changeset 521:d26642ed6afa
use empty string as default config values instead of None
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Wed, 10 Nov 2010 16:48:03 +0000 |
parents | 5802cec2b071 |
children | 7af344f9e704 |
files | test/test_readconfig.py treepkg/readconfig.py |
diffstat | 2 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_readconfig.py Wed Nov 10 16:46:12 2010 +0000 +++ b/test/test_readconfig.py Wed Nov 10 16:48:03 2010 +0000 @@ -120,7 +120,7 @@ branch="", builder_cls="PBuilder", os="bar os", - svn_url=None, + svn_url="", scm_type="svn", rules_scm_type="svn", status_hook="echo extra hook"), @@ -146,7 +146,7 @@ branch="", builder_cls="PBuilder", os="foo os", - svn_url=None, + svn_url="", scm_type="svn", rules_scm_type="svn", status_hook="echo simple hook")])
--- a/treepkg/readconfig.py Wed Nov 10 16:46:12 2010 +0000 +++ b/treepkg/readconfig.py Wed Nov 10 16:48:03 2010 +0000 @@ -67,7 +67,7 @@ packager_desc = [ "name", "base_dir", ("url", str, ""), - ("svn_url", str, None), + ("svn_url", str, ""), ("svn_subset", convert_subversion_subset, ""), ("svn_externals", shlex.split, ""), ("rules_url", str, ""), ("packager_class", str, "treepkg.packager"), @@ -90,8 +90,8 @@ ("check_interval", int), "instructions_file", ("name", str, ""), - ("treepkg_dir", str, None), - ("tracks_dir", str, None) + ("treepkg_dir", str, ""), + ("tracks_dir", str, "") ]