mirror of https://github.com/tLDP/python-tldp
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:
parent
1ee227f3f2
commit
6cdf0b65c1
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue