Skip to content

Commit

Permalink
Merge pull request psf#129 from shaunpud/master
Browse files Browse the repository at this point in the history
Shorten
  • Loading branch information
kennethreitz committed Mar 11, 2018
2 parents bcb0881 + d55bcfb commit bcbcbbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def gen():

try:
href = link.attrs['href'].strip()
if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith('javascript:') and not href.startswith('mailto:'):
if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith(('javascript:', 'mailto:')):
yield href
except KeyError:
pass
Expand Down

0 comments on commit bcbcbbd

Please sign in to comment.