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
In a way, it's not, because fetch() is actually the caller and is closing file_obj, but updating the special section about URL fetchers in the docs to explain that would be nice.
If a file_obj key is given, it is the caller’s responsibility to call file_obj.close(). The default function used internally to fetch data in WeasyPrint tries to close file_obj after retreiving; but if this URL fetcher is used elsewhere, the file object has to be closed manually.
Seeing
WeasyPrint/weasyprint/urls.py
Lines 230 to 231 in e5f7ec9
WeasyPrint/weasyprint/urls.py
Lines 272 to 293 in e5f7ec9
I'm guessing the documentation is either outdated or wrong, is that right?
The text was updated successfully, but these errors were encountered: