use startswith method

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2567 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-05-06 13:06:27 +00:00
parent cd3f5294cb
commit b6662a3098

View file

@ -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: