confini

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

commit 11fe9b33ef02ee5a0ce605c4a567667087ed6d86
parent ac8082ef43e66f44da4a52294887ba53d70cff60
Author: nolash <dev@holbrook.no>
Date:   Mon, 26 Oct 2020 09:13:08 +0100

Remove stray sheband

Diffstat:
MCHANGELOG | 2++
Mconfini/config.py | 7++++---
Msetup.py | 2+-
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +0.2.7 + - Remove stray shebang in module file 0.2.6 - Return default on empty string value 0.2.5 diff --git a/confini/config.py b/confini/config.py @@ -1,5 +1,3 @@ -#!/usr/bin/python - import logging import sys import os @@ -146,7 +144,10 @@ class Config: if type(v).__name__ == 'str' and v == '': if default != None: logg.debug('returning default value for empty string value {}'.format(k)) - return default + return default + else: + return None + return self._decrypt(k, v) diff --git a/setup.py b/setup.py @@ -6,7 +6,7 @@ f.close() setup( name='confini', - version='0.2.6', + version='0.2.7', description='Parse, verify and merge all ini files in a single directory', author='Louis Holbrook', author_email='dev@holbrook.no',