Skip to content

Commit

Permalink
Don't test example addresses. (RFC 2606)
Browse files Browse the repository at this point in the history
  • Loading branch information
da2x committed Sep 2, 2015
1 parent 7e94836 commit 4c09972
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nikola/plugins/command/check.py
Expand Up @@ -236,7 +236,9 @@ def analyze(self, fname, find_sources=False, check_remote=False):
continue
target, _ = urldefrag(target)


if any([urlparse(target).netloc.endswith(_) for _ in ['example.com', 'example.net', 'example.org']]):
self.logger.info("Not testing example address \"{0}\".".format(target))
continue

# absolute URL to root-relative
if target.startswith(base_url.geturl()):
Expand Down

0 comments on commit 4c09972

Please sign in to comment.