You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is unusually restrictive.
It'd be useful to accept any text file as a stream.
My use case would be packaging a .env.defaults file opened by importlib.resources.open_text, so you can uniformly manage/document environment & defaults via .env files.
The text was updated successfully, but these errors were encountered:
Yes, I agree with this change. Having to slurp up the contents of the .env file in order to immediately repackage it as a StringIO is awkward and prohibits lazy loading of files. I'd love to instead be able to do this:
As noted before
#208
#156
the code spec
python-dotenv/src/dotenv/main.py
Line 301 in a7fe93f
is unusually restrictive.
It'd be useful to accept any text file as a stream.
My use case would be packaging a
.env.defaults
file opened by importlib.resources.open_text, so you can uniformly manage/document environment & defaults via.env
files.The text was updated successfully, but these errors were encountered: