From b6662a30983c8949acf5e68e8da0de44d1e3533c Mon Sep 17 00:00:00 2001 From: calvin Date: Fri, 6 May 2005 13:06:27 +0000 Subject: [PATCH] use startswith method git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2567 e7d03fd6-7b0d-0410-9947-9c21f3af8025 --- linkcheck/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: