Skip to content

Commit

Permalink
stateful_browser.py: fix flake8 warning (#332)
Browse files Browse the repository at this point in the history
E741 ambiguous variable name 'l'

Replace this short variable name with `link`.
  • Loading branch information
hemberger committed Aug 27, 2020
1 parent b6eab9d commit 9c2a5b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mechanicalsoup/stateful_browser.py
Expand Up @@ -256,8 +256,8 @@ def list_links(self, *args, **kwargs):
forwarded to :func:`links`.
"""
print("Links in the current page:")
for l in self.links(*args, **kwargs):
print(" ", l)
for link in self.links(*args, **kwargs):
print(" ", link)

def links(self, url_regex=None, link_text=None, *args, **kwargs):
"""Return links in the page, as a list of bs4.element.Tag objects.
Expand Down

0 comments on commit 9c2a5b7

Please sign in to comment.