Skip to content

Fix handling of links in atom feeds #142

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

Closed
wants to merge 1 commit into from

Conversation

larsks
Copy link

@larsks larsks commented Oct 29, 2024

The existing code iterated over entry links like this:

for link in self.__atom_link or []:
    link = xml_elem('link', entry, href=link['href'])

The first line in the loop overwrites the link variable, rendering the
rest of the loop a no-op. This commit corrects the situation by creating a
new variable rather than overwriting the loop variable.

The existing code iterated over entry links like this:

    for link in self.__atom_link or []:
        link = xml_elem('link', entry, href=link['href'])

The first line in the loop overwrites the `link` variable, rendering the
rest of the loop a no-op. This commit corrects the situation by creating a
new variable rather than overwriting the loop variable.
@larsks
Copy link
Author

larsks commented Oct 29, 2024

Oh, never mind. This is a dupe of #139.

@larsks larsks closed this Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant