def is_local_url(target):
ref_url = urlparse(cfg.get('<STR_LIT>'))<EOL>test_url = urlparse(urljoin(cfg.get('<STR_LIT>'), target))<EOL>return test_url.scheme in ('<STR_LIT:http>', '<STR_LIT>') andref_url.netloc == test_url.netloc<EOL>
Determine if URL is a local.