mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-12 00:23:12 +00:00
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:
parent
cd3f5294cb
commit
b6662a3098
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue