Merge pull request #2465 from pypeclub/bugfix/unicode_envs

General: Anatomy does not return root envs as unicode
This commit is contained in:
Jakub Trllo 2022-01-06 11:55:45 +01:00 committed by GitHub
commit eb6dc353f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1568,8 +1568,11 @@ class Roots:
key_items = [self.env_prefix]
for _key in keys:
key_items.append(_key.upper())
key = "_".join(key_items)
return {key: roots.value}
# Make sure key and value does not contain unicode
# - can happen in Python 2 hosts
return {str(key): str(roots.value)}
output = {}
for _key, _value in roots.items():