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
"fixing issue 310, a temporary mapping has been created "
"from `updated` to `published` if `updated` doesn't "
"exist. This fallback will be removed in a future version "
"of feedparser.",
DeprecationWarning,
stacklevel=_stacklevel,
)
returndict.__getitem__(self, "published")
returndict.__getitem__(self, "updated")
Those issues listed in the comment don't seem to have anything to do with this behavior? Maybe from a previous issue tracker?
How long is this going to be here temporarily? 😀 A brief git blame shows its been in the code for at least 8 years when it was last moved to the utils.py file. I didn't dig any further to see when it was added prior to that.
Since this code was getting run in a pytest test, and the failure included a couple hundred lines of debug information, I missed the warning that the code raises.
The text was updated successfully, but these errors were encountered:
I just spent a while trying to figure out why this code didn't work as expected:
I found this in the source code:
feedparser/feedparser/util.py
Lines 73 to 90 in e6a1fb8
utils.py
file. I didn't dig any further to see when it was added prior to that.The text was updated successfully, but these errors were encountered: