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
There is warning from python,
newspaper/utils.py:238: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/****/.newspaper_scraper/feed_category_cache/4493fab35f9369455967c00969619b802f1a2559'>
pickle.dump(result, open(filepath, "wb"))
it seems that you open file, but not closed.
Is it ok to change the following code?
... and save the cached object for next time
with open(filePath,'wb') as f:
pickle.dump(result, f)
The text was updated successfully, but these errors were encountered:
There is warning from python,
newspaper/utils.py:238: ResourceWarning: unclosed file <_io.BufferedWriter name='/var/****/.newspaper_scraper/feed_category_cache/4493fab35f9369455967c00969619b802f1a2559'>
pickle.dump(result, open(filepath, "wb"))
it seems that you open file, but not closed.
Is it ok to change the following code?
... and save the cached object for next time
with open(filePath,'wb') as f:
pickle.dump(result, f)
The text was updated successfully, but these errors were encountered: