explicitly stringify values at "input"

user can pass in a dict(); os.environ always contains string values, though,
so make sure that the dict() looks like what would be returned from os.environ
This commit is contained in:
Martin A. Brown 2016-02-29 10:48:03 -08:00
parent 1ee227f3f2
commit 6cdf0b65c1
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ def dict_from_envdict(env=os.environ, base=None, envsep=ENVSEP, clisep=CLISEP):
for k, v in env.items():
if k.startswith(tag):
k = k.lower().replace(envsep, clisep)
d[k] = v
d[k] = str(v)
return d