Skip to content

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