diff --git a/linkcheck/__init__.py b/linkcheck/__init__.py index 9161f3a7..861787b7 100644 --- a/linkcheck/__init__.py +++ b/linkcheck/__init__.py @@ -69,7 +69,7 @@ def get_link_pat (arg, strict=False): @rtype: dict """ linkcheck.log.debug(LOG_CHECK, "Link pattern %r", arg) - if arg[0:1] == '!': + if arg.startswith('!'): pattern = arg[1:] negate = True else: