confini

Parse and merge multiple ini files in python3
git clone git://git.defalsify.org/python-confini.git
Log | Files | Refs | README | LICENSE

commit 5682bdb6b58d3eb09184155e6dba7414116b7e4a
parent 342fc299e92dc668e3af9e5c6358d012a3996ba7
Author: nolash <dev@holbrook.no>
Date:   Sun,  8 Nov 2020 00:27:12 +0100

Remove None literal string in empty directives on parse

Diffstat:
MCHANGELOG | 2++
Mscripts/parse.py | 5++++-
Msetup.py | 2+-
3 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +0.3.1 + - Remove None string literal on empty values in dump 0.3.0 - Remove spaces around equals sign in string dump 0.2.7 diff --git a/scripts/parse.py b/scripts/parse.py @@ -13,4 +13,7 @@ if __name__ == "__main__": c = Config(sys.argv[1]) c.process() for k in c.store.keys(): - print('{}: {}'.format(k, c.get(k))) + v = c.get(k) + if v == None: + v = '' + print('{}={}'.format(k, v)) diff --git a/setup.py b/setup.py @@ -6,7 +6,7 @@ f.close() setup( name='confini', - version='0.3.0', + version='0.3.1', description='Parse, verify and merge all ini files in a single directory', author='Louis Holbrook', author_email='dev@holbrook.no',