Mercurial > treepkg
changeset 513:3e08d6546d52
set option value to None and not "None"
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Wed, 10 Nov 2010 09:24:48 +0000 |
parents | 6d4778487728 |
children | 0c2cc67a29aa |
files | treepkg/readconfig.py |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/treepkg/readconfig.py Wed Nov 10 09:23:49 2010 +0000 +++ b/treepkg/readconfig.py Wed Nov 10 09:24:48 2010 +0000 @@ -67,7 +67,7 @@ packager_desc = [ "name", "base_dir", ("url", str, ""), - ("svn_url", str, ""), + ("svn_url", str, None), ("svn_subset", convert_subversion_subset, ""), ("svn_externals", shlex.split, ""), ("rules_url", str, ""), ("packager_class", str, "treepkg.packager"), @@ -116,7 +116,10 @@ print >>sys.stderr, "Missing option %r in section %r" \ % (key, section) sys.exit(1) - options[key] = converter(value) + if value is None: + options[key] = value + else: + options[key] = converter(value) return options