-
Notifications
You must be signed in to change notification settings - Fork 430
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency with os.environ and str/unicode in Python 2 #176
Comments
Apparently, this was fixed on Windows thanks to #101, but that fix probably accidentally went away with later MRs. |
Actually, that's a terrible idea! I just found a bug with Unicode and Python 2 hidden behind a |
Released the fix in v0.10.2, thanks! 🎉 |
In Python 2,
os.environ
is a map withstr
keys andstr
values, notunicode
. Unfortunately, values loaded with Python-dotenv areunicode
.Example with
test.py
:and
.env
:Results:
I think that it's probably not worth fixing given Python 2's upcoming end of life, but I'm pointing this out here because this might justify turning off some Mypy type warnings for Python 2.
The text was updated successfully, but these errors were encountered: